Skip to content

Latest commit

 

History

History
37 lines (32 loc) · 1.03 KB

README.md

File metadata and controls

37 lines (32 loc) · 1.03 KB

nimDraw

A simple drawing package for nim

Dependency


only single pixel line drawing is supported. in future try to implement some of the features listed below

  • flood fill
  • shape fill
  • line width
  • storing mechanism of shape steps
  • text insertion
Angle   90 deg
          |
0 deg ----|---- 180 deg or -0 deg
          |
        270 deg
        -90 deg

Go to test folder to see some examples

Spiral flower Crown Rect

Demo

Draw Circle

import nimDraw

var turtle = newWalker((400,400),(200,250),length= 10, angle= 10)
for i in 0..36:
  turtle.walk()
  turtle.angle += 10
discard turtle.canvas.saveAsPng("circle.png")