sry tony --- can u tell me how to draw
Author |
Message |
yoyo
|
Posted: 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
|
|
|
Dan
|
Posted: 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
|
Posted: 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
|
Posted: 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
|
Posted: 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) |
Tony's programming blog. DWITE - a programming contest. |
|
|
|
|
Blade
|
Posted: 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
|
Posted: 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
|
Posted: Mon Sep 22, 2003 7:41 am Post subject: (No subject) |
|
|
maybe he wants to |
|
|
|
|
|
Sponsor Sponsor
|
|
|
|
|