-
-
Notifications
You must be signed in to change notification settings - Fork 3.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to change color of all circles?? #7035
Labels
Comments
yealicjswo
changed the title
How to add color of whole dots??
How to add color of whole dot??
May 13, 2024
yealicjswo
changed the title
How to add color of whole dot??
How to add color of all circles??
May 13, 2024
yealicjswo
changed the title
How to add color of all circles??
How to change color of all circles??
May 13, 2024
Hi @yealicjswo you can use the function setup() {
createCanvas(600, 600);
}
function draw() {
background(240);
let space = 10;
strokeWeight(4);
stroke(255, 0, 0);
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);
}
}
} 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! |
@limzykenneth thanks! I will make sure to ask an question(for my own code) in the forum and Discord. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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: