xxxxxxxxxx
function setup() {
createCanvas(800, 800, WEBGL);
colorMode(HSB, 360, 100, 100, 100);
}
function draw() {
background(5);
noFill();
stroke(184, 100, 82);
rotateX(frameCount * 0.01);
rotateY(frameCount * 0.01);
box(45, 45, 45);
col();
// noStroke();
// colorMode(HSB, 100);
// for (let i = 0; i < 80; i++) {
// for (let j = 0; j < 80; j++) {
// let x = i * 40;
// let y = j * 40;
// box(x, y, 40);
// fill(i, j, 100);
// stroke(i, j, 100);
// strokeWeight(3);
// }
// }
}
function col() {
noStroke();
colorMode(HSB, 360,100,100,100);
translate(width * 0.05, height * 0.05);
for (let i = 0; i < 100; i++) {
for (let j = 0; j < 100; j++) {
stroke(i, j, 100);
point(i, j);
}
}
}