Here it is!
Sorry, it's written in p5.js, so you just had to download 5MB of minified code from cloudflare...
I couldn't be bothered to actually write it in raw javascript, because it's like a 30 minute project
and fighting the html5 canvas ctx
would've taken much longer.
p5js also redraws everything every frame at 60fps, regardless of whether or not it actually need to be redrawn.
So rip your cpu, i guess...
This calculator was designed for a 9x9 wheat farm plot, with a water block in the middle.
Wheat need light level 9 to grow, and it's kinda hard to figure out where to place torches,
especially when doing the math by hand.
If you plan to have an absurd amount of these plots lined up in a grid, you can press