Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 This is a very basic graphics program I wrote for Turing.
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
samiam97




PostPosted: 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



graphicsAssign2 Output.bmp
 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)

graphicsAssign2 Output.bmp


Sponsor
Sponsor
Sponsor
sponsor
Insectoid




PostPosted: 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




PostPosted: 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
Display posts from previous:   
   Index -> Programming, Turing -> Turing Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 3 Posts ]
Jump to:   


Style:  
Search: