I think this is the easiest way, I made an example with a 5*5 sprite, saved into appvar "A"

sum(1,"A","r") // the slot will be 1, because you closed all slots before
DefineSprite(5,5)→SPR // allocates data for your sprite (the program has to save the sprite anywhere)
sum(5,SPR,27,1,1) // reads/copies the data into SPR (size is 2 bytes for width and height, 25 bytes for the pixels)



And I think you need the clibs v9.0 or lower for ICE
Register to Join the Conversation
Have your own thoughts to add to this or any other topic? Want to ask a question, offer a suggestion, share your own programs and projects, upload a file to the file archives, get help with calculator and computer programming, or simply chat with like-minded coders and tech and calculator enthusiasts via the site-wide AJAX SAX widget? Registration for a free Cemetech account only takes a minute.

» Go to Registration page
Page 2 of 2
» All times are UTC - 5 Hours
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum