I think this is the easiest way, I made an example with a 5*5 sprite, saved into appvar "A"
Code:
And I think you need the clibs v9.0 or lower for ICE
Code:
[i]B
det(0)
sum(0)
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)
det(57,SPR,10,10)
Pause
det(1)
And I think you need the clibs v9.0 or lower for ICE