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

Username:   Password: 
 RegisterRegister   
 sry tony --- can u tell me how to draw
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
yoyo




PostPosted: Tue Sep 16, 2003 7:04 pm   Post subject: sry tony --- can u tell me how to draw

draw.oval doesnt seem to work
Sponsor
Sponsor
Sponsor
sponsor
Dan




PostPosted: Tue Sep 16, 2003 7:06 pm   Post subject: (No subject)

sigh, dose this look like turing help?

Moved to turing help
Computer Science Canada Help with programming in C, C++, Java, PHP, Ruby, Turing, VB and more!
Dan




PostPosted: Tue Sep 16, 2003 7:09 pm   Post subject: (No subject)

Draw.Oval (x, y, xRadius, yRadius, Color : int)

make shure to use caps on Draw and Oval
Computer Science Canada Help with programming in C, C++, Java, PHP, Ruby, Turing, VB and more!
yoyo




PostPosted: Tue Sep 16, 2003 7:26 pm   Post subject: ..

yo i drew it, now how do i move it around, sry im a total idiot at these things
Tony




PostPosted: Tue Sep 16, 2003 8:45 pm   Post subject: (No subject)

yeah, but this way you atleast ask proper questions with exactly what you dont understand.

To move it you have to alter X and Y values you use to draw oval.

for example:

code:

var x,y:int
x:=100
y:=100
%draw first oval
Draw.Oval (x,y,5,5,red)

%change values of x and y
x:=x+10
y:=y+5

%draw oval at new location
Draw.Oval(x,y,5,5,blue)


Blue oval still uses same X and Y variables, but since they now have a new value, its in a new place (10 to the right, 5 up)
Latest from compsci.ca/blog: Tony's programming blog. DWITE - a programming contest.
Blade




PostPosted: Thu Sep 18, 2003 3:13 pm   Post subject: (No subject)

if you want to use lowercase... you dont use the "."
code:
drawoval(x,y,r1,r2,colour)
Andy




PostPosted: Sat Sep 20, 2003 10:17 pm   Post subject: (No subject)

wow, everybody is a mod these days...
yoyo, why are u using Draw.Oval? just use drawoval and u can press F10 to call up on the turing help.
krishon




PostPosted: Mon Sep 22, 2003 7:41 am   Post subject: (No subject)

maybe he wants to Shocked
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  [ 8 Posts ]
Jump to:   


Style:  
Search: