xxxxxxxxxx
55
let rSize =200;
let x;
let y;
let xJump = 10;
let yJump = -3;
function setup() {
createCanvas(500, 500);
rectMode(CENTER);
background(255);
colorMode(HSB, 175);
x=100;
x=100;
y=100;
}
function draw() {
fill (map(mouseX,0,width,0,360),
map(mouseY,0,height,0,90),
90)
background(
map(mouseX,0,width,10,255),
100,
map(mouseY,0,height,100,225)
);
line(pmouseX,pmouseY,mouseX,mouseY);
strokeWeight(10);
fill(255,255,255);
print(x);
print(y+x+mouseX);
print(mouseX+","+mouseY);
fill(random(255));
textSize(25);
text("SHOULD BEN GIVE US ALL AN A?!", random(50,50), random(50,50));
rect(x,height/2.5,rSize, rSize,random(50,50), random(50,50));
x = x + 3;
if(x >=width+ rSize/2) {
x = -rSize/2;
}
textSize(95);
fill(250,0,0);
text("YES", x,height/2,rSize, rSize);
x = x + 3;
if(x >=width+ rSize/2) {
x = -rSize/2;
}
}