Triangle

by (no login)

 

using your illustration as a guide

solid:

c=colour
x=pixelsFromLeft
y=pixelsFromTop
z=pixelsTall
PSET (x, y)
FOR i = 1 TO z
LINE (x - i, y + i)-(x + i, y + i), c
NEXT i

hollow:

c=colour
x=pixelsFromLeft
y=pixelsFromTop
z=pixelsTall
PSET (x, y)
FOR i = 1 TO z
PSET (x - i, y + i), c
PSET (x + i, y + i), c
NEXT i

LOL=P~

Posted on Nov 14, 2010, 10:08 PM

Respond to this message   

Return to Index

Response TitleAuthor and Date
Very good! Add color to first PSETClippy on Nov 15
 Oops, I forgot that little , c on Nov 15

 Copyright © 1999-2014 Network54. All rights reserved.   Terms of Use   Privacy Statement