xxxxxxxxxx
24
var circ1 = {
x:0,
y:0,
angle:0.0,
offset:50,
scalar:20,
speed:3
}
function setup() {
createCanvas(600, 420);
background(204);
angleMode(DEGREES)
}
function draw() {
circ1.x = circ1.offset + cos(circ1.angle) * circ1.scalar
circ1.y = circ1.offset + sin(circ1.angle) * circ1.scalar
ellipse( circ1.x, circ1.y, 40, 40);
circ1.angle += circ1.speed;
}