code verhuist naar :
http://www.basic.wikispaces.com
zie member pages | bluatigro | how to draw your Sprites
main code :
Draw Bool Sprites
example code :
DBS pacman
DBS molecule
DBS ball
DBS monkey
comando lijst :
constanten :
black red geen yellow blue magenta cyan white
gray pink orange purple
clr = rainbow( degrees )
clr = mix( clrl1 , 0 ... 1 , clr2 )
clr = rgb( r , g , b )
clear spritewidth , spriteheight
==== 2D ====
[ whit a "normal" sprite up = black ]
drawline x1 , y1 , z2 , y2 , thick , down , up
elipse x , y , dx , dy , thick , down , up
elipsefil x , y , dx , dy , down , up
box x1 , y1 , x2 , y2 , thick , down , up
boxfil x1 , y1 , x2 , y2 , down , up
the begin and end are in degrees
and can be different setiings for same results
arc x , y , dx , dy , begin , end , down , up
pie x , y , dx , dy , begin , end , thick , down , up
piefil x , y , dx , dy , begin , end , down , up
blezier x1,y1 , x2,y2 , x3,y3 , x4,y4 , thick,down,up
==== 3D ====
[ this needs a for height = 0 - spry to spry loop ]
sphere x , y , z , d , clr
q is in degrees and rotates the spheres Yas
sphere2 x , y , z , d , clr1 , clr2 , q
egg x1,y1,z1,d1 , x2,y2,z2,d2 , dm , clr
save spr$
[ dont forget : change path in sub save if needed ]
NIET buiten de sprite tekenen !!!!
als iemand nog uitbreidingen wil vraag dan