And here`s one version with more "vertices"
sync on
sync rate 3
for times=0 to 65
cls
vertice1posx=rnd(640):vertice1posy=rnd(480)
vertice2posx=rnd(640)
vertice2posy=rnd(480)
vertice3posx=rnd(640)
vertice3posy=rnd(480)
vertice4posx=rnd(640)
vertice4posy=rnd(480)
dot vertice1posx,vertice1posy
dot vertice2posx,vertice2posy
dot vertice3posx,vertice3posy
line vertice1posx,vertice1posy,vertice2posx,vertice2posy
line vertice2posx,vertice2posy,vertice3posx,vertice3posy
line vertice3posx,vertice3posy,vertice4posx,vertice4posy
line vertice4posx,vertice4posy,vertice1posx,vertice1posy
sync
next times
gives all sorts of shapes...
I would like to make it draw interesting shapes , but the problem is , if i add to much or MORE THEN 3 "vertices" , lines will intersect and it wouldnt look to nice with lets say 10 of them..
Offcourse , i`m working on a way to make it dont intersect , but not sure if i`ll be able to.
EDIT: I finally made it , now it looks like real 3d shapes !
sync on:sync rate 3:for times=0 to 65
cls:vertice1posx=rnd(640):vertice1posy=rnd(480)
vertice2posx=rnd(640):vertice2posy=rnd(480)
vertice3posx=rnd(640):vertice3posy=rnd(480)
vertice4posx=rnd(640):vertice4posy=rnd(480)
dot vertice1posx,vertice1posy:dot vertice2posx,vertice2posy:dot vertice3posx,vertice3posy
line vertice1posx,vertice1posy,vertice2posx,vertice2posy
line vertice1posx,vertice1posy,vertice3posx,vertice3posy
line vertice1posx,vertice1posy,vertice4posx,vertice4posy
line vertice2posx,vertice2posy,vertice1posx,vertice1posy
line vertice2posx,vertice2posy,vertice3posx,vertice3posy
line vertice2posx,vertice2posy,vertice4posx,vertice4posy
line vertice3posx,vertice3posy,vertice1posx,vertice1posy
line vertice3posx,vertice3posy,vertice2posx,vertice2posy
line vertice3posx,vertice3posy,vertice3posx,vertice3posy
line vertice3posx,vertice3posy,vertice4posx,vertice4posy
line vertice4posx,vertice4posy,vertice1posx,vertice1posy
line vertice4posx,vertice4posy,vertice2posx,vertice2posy
line vertice4posx,vertice4posy,vertice3posx,vertice3posy
sync:next times
And also a fun simple code here.. :
sync on
sync rate 3
num=1
do
x=rnd(640)
y=rnd(480)
ink rgb(255,rnd(245),0),9935
Set cursor x,y-20
print num
inc num,1
ink rgb(240+c,100+c,100+c),9935
circle x,y,4
sync
loop