Computer Science Canada This is a very basic graphics program I wrote for Turing. |
Author: | samiam97 [ Thu Nov 15, 2012 4:00 pm ] |
Post subject: | This is a very basic graphics program I wrote for Turing. |
setscreen("graphics") var x,x2:int:=0 var col:int loop randint(col,1,250) x:=x+1 drawline(310,225,x,0,col) delay(10) exit when x=639 end loop loop randint(col,1,250) x2:=x2+1 drawline(310,225,x2,399,col) delay(10) exit when x2=639 end loop |
Author: | Insectoid [ Thu Nov 15, 2012 6:29 pm ] |
Post subject: | RE:This is a very basic graphics program I wrote for Turing. |
drawline() is very primitive. It draws the straightest line it can and does no more. You know how angled lines are always jagged? That's what's causing the problem. You could try using Draw.ThickLine() to make the lines overlap. |
Author: | Raknarg [ Sun Nov 18, 2012 7:33 pm ] |
Post subject: | RE:This is a very basic graphics program I wrote for Turing. |
Or create a gradient triangle... woo |