// Cloned by Joseph Adedayo on 29 Nov 2022 from World "One Cube World (P5)" by Starter user
// Please leave this clone trail here.
const objectsize = 200; // size of object
const anglechange = 0.01; // how much the rotate angle changes each step
var angle = 0; // rotate angle starts at 0
function setup() // "setup" is called once at start of run
{
createCanvas ( ABWorld.fullwidth(), ABWorld.fullheight());
frameRate(12);
}
function draw() // "draw" is called every timestep during run
{
background("black"); // background color
fill("white"); // paint box with this color
// set each dimension rotation angle to "angle
x = mouseX
y = mouseY
text("X: "+ x, 0, height/4);
text("Y: "+ y, 0, height/2);
ellipse(mouseX, mouseY, 33, 33);
while (0 === 0)
{
if (x === 0)
{
text("sdssdsd: "+ x, 0, height/4);
}
}
// change angle each step to get rotate movement
}