User Tools

Site Tools


el:spritedim

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

el:spritedim [2016/01/01 22:40] (current)
Line 1: Line 1:
 +===== Spritedim =====
 +==== Format ====
 +**spritedim** //n//\\
 +**spritedim** ( //n// )
 +==== Description ====
 +Create //n// sprite placeholders in memory. ​ Sprites are accessed in your program by a sprite number from 0 to n-1.
 +
 +==== Example ====
 +<​code>​
 +# creates a sprite with number 0
 +clg
 +fastgraphics
 +spritedim 1
 +a$="​Basic 256"
 +Text 0,0,a$
 +spriteslice 0,​0,​0,​textwidth (a$),​textheight()
 +spriteshow 0
 +
 +# rotates and enlarges sprite
 +for n=0 to 2*pi step .002
 +clg
 +spriteplace 0,​150,​150,​n,​n
 +refresh
 +next n
 +</​code>​
 +==== See Also ====
 +{{page>​en:​start#​Graphics - sprites&​noheader}}
 +==== New To Version ==== 
 +0.9.6n
  
el/spritedim.txt ยท Last modified: 2016/01/01 22:40 (external edit)