We are about to switch to a new forum software. Until then we have removed the registration on this forum.
There is my code, but my color1,2,3 can be bigger than 255 and less than 0, how to fix it?
and when I run the program, there is a solid black ellipse in the center even if I don't press my mouse. How can I erase it?
Please don't post screenshots of code.
Instead, paste the code itself so that people can read/test it, and format it by highlighting your code and pressing Ctrl+o. https://forum.processing.org/two/discussion/15473/readme-how-to-format-code-and-text
You can use colorMode to scale color to any values.
e.g.
colorMode(RGB, 0, 500);
or use constrain to constrain a value to 0..255 range
or map() to convert from one range to another.
Answers
and when I run the program, there is a solid black ellipse in the center even if I don't press my mouse. How can I erase it?
Please don't post screenshots of code.
Instead, paste the code itself so that people can read/test it, and format it by highlighting your code and pressing Ctrl+o. https://forum.processing.org/two/discussion/15473/readme-how-to-format-code-and-text
You can use colorMode to scale color to any values.
e.g.
or use constrain to constrain a value to 0..255 range
or map() to convert from one range to another.