We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I am new to coding and I am learning how to create animations by coding
I want to use loop to make the clouds move left and right constantly, so I wrote the following code
var xc1 = 380 function setup() { createCanvas(600,600); background(0); frameRate(10); . . . function draw() { xc1 = (xc1 + 50) % 600;
var i = 0; while(i < 900){ ellipse(xc1, 150, 60, 30); ellipse(xc1 + 20, 130, 60, 30);; ellipse(xc1 + 40, 150, 60, 30); i ++ ; }
}
However, when I started to run the code the cloud didn't move left and right but becoming more and more more and more clouds appeared horizontally
Do anybody know how to fix this? Thank you so much!!!
The text was updated successfully, but these errors were encountered:
Sorry, this is not a venue for asking for help on programming. I suggest https://stackoverflow.com/.
Sorry, something went wrong.
No branches or pull requests
I am new to coding and I am learning how to create animations by coding
I want to use loop to make the clouds move left and right constantly, so I wrote the following code
var xc1 = 380
function setup() {
createCanvas(600,600);
background(0);
frameRate(10);
.
.
.
function draw() {
xc1 = (xc1 + 50) % 600;
}
However, when I started to run the code
the cloud didn't move left and right but becoming more and more
more and more clouds appeared horizontally
Do anybody know how to fix this? Thank you so much!!!
The text was updated successfully, but these errors were encountered: