Rotating Not Working?

I can’t seem to spin my Sprite it seems to move it around instead of rotating
It’s like this
angle = angle + 1
Rotate(angle)
Sprite

You need to use translate. Here’s an example.

function setup()
    parameter.integer("angle",0,360,0)
end

function draw()
    background(0)
    translate(WIDTH/2,HEIGHT/2)
    rotate(angle)
    sprite("Planet Cute:Character Horn Girl",0,0)
end

Thanks