Adding support for the simplest of shapes: a rectangle

#OCaml #GameDev

Guess we doing circles now.

On days like these I am super thankful OCaml lets you have procedural code.

code: https://gist.nouveau.community/capitalex/1e5ff122a4504fe5b3cce8bef43305cd

Looking at the gif wikipedia has, feels like I can draw a verticle line between each region and then have a filled circle. Should probably make a line operation next, then.
It is a real shame OCaml is so slept on for stuff beyond compilers and whatever banks do. It's just a really nice language for working functionally or procedurally. For the most part I have just been using it like Lua++. The support for bare objects and polymorphic variants is really the cherry on top.
@andnull I remember tool chain issues but maybe that's fixed now?
@deech @andnull I've been quite happy with opam and Dune. I'd say I've tested hobby level projects that cover the basics nicely. This is on Linux, so I could imagine a very different experience with a different platform/ environment.
@Spoofer3 @deech With winget now a thing I managed to get the opam+dune set up working with Windows pretty quickly. It even manage cygwin on your behalf.