next one..
this example generates geometric structure of lines to a circle
[code=thinbasic]uses "liongfx", "console"
liongfx_screen 20,8
liongfx_windowtitle "liongfx: generates geometrics circle with 'two colours'"
dim xn,an,yn,bn,cn,in1 as single
dim tn as double
xn = 100
an = 384
yn = 100
bn = 384
cn = 512
liongfx_sleep 500
for in1 = 0 to 6.28 step 0.31415/2
xn = sin(in1) * 300 + 512
yn = cos(in1) * 300 + 384
for an = 212 to 812 step 100
liongfx_color in1+1,255
liongfx_lines xn,yn, an,bn,12 '-rnd(12,125)
next an
for an = 84 to 734 step 100
liongfx_color in1+2,155
for tn =1 to 1000000
next tn
liongfx_lines xn,yn, cn,an,10 '- rnd(10,255)
next an
next in1
liongfx_getkey
liongfx_sleep 1500
[/code]
two codes variants (with a) two colours and b) many colours) I have included in zip file.
that's all and makes a lot of fun !
good night, lionhead
Bookmarks