xxxxxxxxxx
function setup() {
createCanvas(windowWidth, windowHeight);
background(100);
}
var x=100
var y=10
var yspeed=-5
var xspeed=7
var poo2=0
var poo1=255
var poo3=0
function draw() {
colorMode(HSB);
fill (654334)
// text(poo2,150,100)
// text(poo3,200,100)
poo1 = (poo1 + 0.2) % 360;
// background(0);
for(var i=0;i<200;i++){
strokeWeight(0)
textSize(20)
strokeWeight(0)
fill(poo2)
rect (0,y-50,20,100)
rect (width-20,y-50,20,100)
y+=yspeed
x+=xspeed
if (y>height-10) {yspeed=-yspeed; y=height-10}
if (y<10) {yspeed=-yspeed; }
if (x>width-20) {xspeed=-xspeed; }
if (x<20) {xspeed=-xspeed; }
fill (poo1,100,100)
noStroke()
ellipse(x, y, 20, 20);}
}