Fuzzy circle
in
Programming Questions
•
1 year ago
I have this code, which is supposed to create a fuzzy-looking circle.
- for (float i = 10; i > 0; i--) {
- fill(255, 0, 0, i / 10 * life);
- noStroke();
- ellipse(pos.x, pos.y, i, i);
- }
life is a float from 1 to 255 and
pos is a PVector.
When I run this code (not standalone, obviously), it simply creates a solid red circle.
What's wrong with my code?
When I run this code (not standalone, obviously), it simply creates a solid red circle.
What's wrong with my code?
1