I have a function than takes in a polar equation and plots it pixel by pixel.
The whole loop is finished then it's rendered at the end, but I don't want it to wait till the end of the loop to show the full thing, I just want to show each pixel as it's being rendered one by one.
Most solutions talk about refreshing the whole thing and rerendering the previous stuff, which seems inefficient and also kinda complicated.
Is there a function or technique that could help me accomplish that without too much complication? Maybe something like:
do {
putPixel(x,y, color);
renderNow();
wait();
} while ...