|
-
Aug 13th, 2002, 12:28 PM
#1
Thread Starter
Member
Line algorithm
Hi,
This is the best place where I can post this, I think
Say, I have a subroutine called drawline, which accepts as parameters:
x1, y1, x2, y2
We have a screen, and on point (x1,y1) we start drawing our line to (x2,y2). Each pixel on the line should be determined by an algorithm, and than colored, say gree. Does anybody know an algorithm?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|