A pixel drawing utility in pure nim - No external lib required
This is a simple lib that can draw .png
files, abstracted over nimPNG.
Currently you can:
- Fill a surface with a color
- Draw lines ( left to right, right to left, oblique )
- Draw rectangles
- Save a surface to png
Bonus: draw simple equations in the format # + # =
( or any other combination of
numbers, spaces, +
, =
)
See examples for code.
See code comments, or view nim doc2
output at my site
- convenience function for creating
NColor
, maybeproc rgba(r,g,b,a:float):NColor
(proc rgb()
too) - support saving sdl2 surfaces ( and maybe loading too? )