Skip to content

stisa/nixel

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Nixel

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, + , = )

Examples

tet

noborder
border

rect

Mhh this one is a bit tiny square

See examples for code.

Documentation

See code comments, or view nim doc2 output at my site

Plans

  • convenience function for creating NColor, maybe proc rgba(r,g,b,a:float):NColor ( proc rgb() too)
  • support saving sdl2 surfaces ( and maybe loading too? )

License

MIT

About

A pixel drawing utility in pure nim

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages