You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would like to add color(any color I want) of whole dot while I test with 'for' loops example.
so, Is there an any solution for applying color of all circles??
function setup() {
createCanvas(600, 600);
}
function draw() {
background(240);
let space = 10;
strokeWeight(4);
for (let x = space; x < 600; x += space) {
// Loop from the top to the bottom.
for (let y = space; y < 600; y += space) {
point(x, y);
}
}
}
The text was updated successfully, but these errors were encountered:
functionsetup(){createCanvas(600,600);}functiondraw(){background(240);letspace=10;strokeWeight(4);stroke(255,0,0);for(letx=space;x<600;x+=space){// Loop from the top to the bottom.for(lety=space;y<600;y+=space){point(x,y);}}}
If you need help with your own code, please direct your questions to the forum or Discord. We use GitHub issues mainly for bug reports and feature requests only. Thanks!
Topic
I would like to add color(any color I want) of whole dot while I test with 'for' loops example.
so, Is there an any solution for applying color of all circles??
function setup() {
createCanvas(600, 600);
}
function draw() {
background(240);
let space = 10;
strokeWeight(4);
for (let x = space; x < 600; x += space) {
// Loop from the top to the bottom.
for (let y = space; y < 600; y += space) {
point(x, y);
}
}
}
The text was updated successfully, but these errors were encountered: