[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
Liberty BASIC Holland • Toon onderwerp - SPRITE DRAW

SPRITE DRAW

Start hier uw open source projecten

SPRITE DRAW

Berichtdoor bluatigro » vr maart 19, 2010 10:18 am

bluatigro
 
Berichten: 306
Geregistreerd: za sep 27, 2008 6:01 pm

Re: SPRITE DRAW

Berichtdoor bluatigro » za apr 10, 2010 7:10 pm

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
bluatigro
 
Berichten: 306
Geregistreerd: za sep 27, 2008 6:01 pm


Keer terug naar OPEN SOURCE PROJECTEN

Wie is er online

Gebruikers op dit forum: Geen geregistreerde gebruikers. en 1 gast

cron