I am creating an incrementing circle that is drawn with rectangles ( see the code ), and every time the angle reaches HALF_PI, the color is changed. My problem is, the drawn color (green) gets bigger as the circle expands, but I would like the size of the drawn color(green) to stay the same.
For any hint of how to resolve it, I would be very thankful! And props to the Processing Community
Where decrement is relative to radius. As for how that Relation looks like, idk… it‘s either directly radius/1000 which came quite close, or you’ll have to go with something like pow(radius/1000, 2.7) or something like that…
I think that maybe the problem is the increment, not being constant, the angles that you get aren’t passing trough 0,90,180,270,360 always, so you have to be more or less tolerant depending on how the increment is ( having a little increment, is more probably to pass over that angles) and the rectangles overlaps each others… maybe this gives you an idea about how to fix it, good luck
Found the perfect Solution! Add one global variable decrement. Set it to 0.5. Use it to replace the 0.5 in the if statement. And multiply it * 0.9 exactly like the increment (just put it in the line after it).