not sure why you need to use a memblock as it would be so much easier to make a triangle or square function
that you pass parameters to. And there are great get image commands that work quite fast
Here is an example I used they could be perfected to have parameters passed and a minor calculation to make the image
for any sized image just for my purposes they were fine as they were
function createTriangleImage()
rem draw a triangle image used for the player sprite on radar
SetClearColor(0,0,0)
ClearScreen()
Render()
DrawLine(5,0,9,9,green,green)
DrawLine(1,8,8,8,green,green)
DrawLine(1,9,5,0,green,green)
//DrawLine(5,0,5,9,green,green)
//draw these if you want it filled
DrawLine(4,0,8,9,green,green)
DrawLine(0,9,8,9,green,green)
DrawLine(0,9,4,0,green,green)
DrawBox(4,1,6,8,green,green,green,green,1)
swap()
img = getimage(0,0,10,10)
SetImageTransparentColor(img,0,0,0)
endfunction img
function createCircleImage()
rem draw a triangle image used for the player sprite on radar
SetClearColor(0,0,0)
ClearScreen()
Render()
DrawEllipse(6,6,4,4,yellow,yellow,0)
DrawEllipse(6,6,3,3,yellow,yellow,0)
swap()
img = getimage(0,0,12,12)
SetImageTransparentColor(img,0,0,0)
endfunction img
memblocks are better suited for modifying things when there is no suitable command
ie modify a wav file but to do so you have to understand how the sound file is set up
ie create your own object commands like puzzler is doing on his thread
or perhaps blending two images or adding a multiplier etc but that is best done with a shader
fubar