Munching squares: Difference between revisions

Added Processing implementation
(Added solution for Action!)
(Added Processing implementation)
Line 1,133:
call writeppm(screen);
end munch;</lang>
 
=={{header|Processing}}==
Renders grayscale image, the larger the window the more the squares will repeat along the main diagonal from top left to bottom right.
 
<lang java>
//Aamrun, 26th June 2022
 
size(1200,720);
 
loadPixels();
 
for(int i=0;i<height;i++){
for(int j=0;j<width;j++){
pixels[j + i*width] = color(i^j);
}
}
 
updatePixels();
</lang>
 
=={{header|Prolog}}==
503

edits