Thank you so much, @noel. The Floodfill looks great!
To fix the import issue on openprocessing, I think we could replace java.awt.Point with PVector. Could you try that? We might also need to / want to change the linkedlist / deque into ArrayList, I’m not sure.
Wow, this looks great fun. I am looking at all the unfinished topics looking for one to tackle. The Rosetta project shows the aesthetic beauty of code ipso facto. Sometimes the code is more beautiful than the output and too often hidden.
I’ve added a link to play the Bitmap/Floodfill task here. Unfortunately, if the Device Pixel Aspect Ratio of the monitor is not 1.00, the sketch will probably not run properly. This happens for instance when you chose a different text percentage (like 125%) in your “windows appearance” settings. You will have to zoom in/out on your browser to adjust this. This aspect ratio you can discover on this site. If anyone knows a solution for this I will be grateful.
I am optimizing the variable names and adding comments for better understanding Also I am taking out some leftover garbage. So maybe you want to check this later on.
@Noel The churlish bot has made a mistake. Its logic only works if there is a fixed amount of total space. Only then could you give others space by contributing less.
I guess no one is going to beat that.
Maybe just removing"use strict"
It isn’t strict necessary is it?
Googled a bit, and it’s said that it’s good to get rid of many “silent” errors that can occur .
Is that it?