In the API demo when they do the example of how to draw a colour pallette at the top of the screen: I notice the commands don't work when used inside the draw function. When used inside of draw they showup for a second and disappear. removing the cls() allows them to stay, but I need cls included. What do i need to be doing to get the pallette to stay while using the following within the draw function?
function _draw()
cls()
rectfill(1,1,7,7,5)
for i=0,10 do
print(i,x,2,i)
x = x + 6
end
end