
-----------------------------------
Bskll
Sun Nov 07, 2004 9:15 pm

need help
-----------------------------------
this is my code so far
var colorline : int
colorback(black)

loop
randint(colorline, 0, maxcolor)
Draw.ThickLine(0,maxy div 2, maxx, maxy div 2, 10, colorline)
delay(75)
cls
Draw.ThickLine(0,0,maxx, maxy, 10, colorline)
delay(75)
cls
Draw.ThickLine(maxx div 2, 0, maxx div 2, maxy, 10, colorline)
delay(75)
cls
Draw.ThickLine(maxx, 0, 0, maxy, 10, colorline)
delay(75)
cls
for i : 0..100
    drawoval(maxx div 2, maxy div 2, i-100, i-100, colorline)
    drawoval(maxx div 2, maxy div 2, i+100, i+100, colorline) 
cls
end for
delay(100)
end loop



how do i make the circle go faster ie. make it skip 5 pixel at a time?

-----------------------------------
Tony
Sun Nov 07, 2004 9:18 pm


-----------------------------------

for i:1..100 by 5
..

read more about loops [url=http://www.compsci.ca/v2/viewtopic.php?t=3678]here

-----------------------------------
Bskll
Sun Nov 07, 2004 9:24 pm


-----------------------------------
thanks

-----------------------------------
myob
Mon Nov 08, 2004 7:15 am


-----------------------------------

for i:1..100 by 5
..

read more about loops 

that's interesting, never thought of that. i would go 
for i : 1 .. 100
radius := i * 5


just other variations, dont get too into detail, each got its ups and downs

-----------------------------------
Tony
Mon Nov 08, 2004 10:56 am


-----------------------------------
myob - your code will go up to 500 instead of 100 :wink:

-----------------------------------
myob
Mon Nov 08, 2004 5:18 pm


-----------------------------------
i know that, but since i see urs is an example, mine was just another example without deep thought, if u look on his program, his intention was to draw 100 circles. if he uses u loop he only draws 20 circles  :D
