This is a very basic graphics program I wrote for Turing.
Author |
Message |
samiam97
|
Posted: 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
Description: |
As you can see, the colour really sucks when you run it. And ideas how I can fix this? |
|
Filesize: |
1000.05 KB |
Viewed: |
57 Time(s) |
|
|
|
|
|
|
|
Sponsor Sponsor
|
|
|
Insectoid
|
Posted: 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.
|
|
|
|
|
|
Raknarg
|
Posted: 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
|
|
|
|
|
|
|
|