diff --git a/examples/circle2circle.nim b/examples/circle2circle.nim index aeec47a..60fefbc 100644 --- a/examples/circle2circle.nim +++ b/examples/circle2circle.nim @@ -1,4 +1,4 @@ -import bumpy, common, pixie/demo, vmath, chroma +import bumpy, chroma, common, pixie/demo, vmath var a: Circle diff --git a/examples/circle2line.nim b/examples/circle2line.nim index 2fba85b..f9bfc3e 100644 --- a/examples/circle2line.nim +++ b/examples/circle2line.nim @@ -1,4 +1,5 @@ -import bumpy, common, pixie/demo, vmath, chroma +import bumpy, chroma, common, pixie/demo, vmath + var c: Circle l: Line diff --git a/examples/circle2rect.nim b/examples/circle2rect.nim index ea327e4..bb126a3 100644 --- a/examples/circle2rect.nim +++ b/examples/circle2rect.nim @@ -1,4 +1,4 @@ -import bumpy, common, pixie/demo, vmath, chroma +import bumpy, chroma, common, pixie/demo, vmath var a: Circle diff --git a/examples/circle2seg.nim b/examples/circle2seg.nim index 5c346db..f25b7ca 100644 --- a/examples/circle2seg.nim +++ b/examples/circle2seg.nim @@ -1,4 +1,5 @@ -import bumpy, common, pixie/demo, vmath, chroma +import bumpy, chroma, common, pixie/demo, vmath + var a: Circle s: Segment diff --git a/examples/convexhull.nim b/examples/convexhull.nim index c7839d5..2f2bc00 100644 --- a/examples/convexhull.nim +++ b/examples/convexhull.nim @@ -1,4 +1,4 @@ -import bumpy, pixie/demo, vmath, chroma, random, common +import bumpy, chroma, common, pixie/demo, random, vmath var points: seq[Vec2] diff --git a/examples/hull2hull.nim b/examples/hull2hull.nim index 140e94f..0b4ef77 100644 --- a/examples/hull2hull.nim +++ b/examples/hull2hull.nim @@ -1,4 +1,4 @@ -import bumpy, pixie/demo, vmath, chroma, random +import bumpy, chroma, pixie/demo, random, vmath var hull1: seq[Vec2] @@ -83,7 +83,6 @@ while true: ctx.strokeStyle = rgba(0, 255, 0, 255) ctx.strokeSegment(segment(avgA, avgA + normB*80)) - if isKeyDown(KEY_SPACE): gen() diff --git a/examples/line2line.nim b/examples/line2line.nim index 1264378..3603e64 100644 --- a/examples/line2line.nim +++ b/examples/line2line.nim @@ -1,4 +1,4 @@ -import bumpy, common, pixie/demo, vmath, chroma +import bumpy, chroma, common, pixie/demo, vmath # The lines always overlap unless you get them to be perfectly parallel. diff --git a/examples/line2poly.nim b/examples/line2poly.nim index b0ad9e3..729f8de 100644 --- a/examples/line2poly.nim +++ b/examples/line2poly.nim @@ -1,4 +1,4 @@ -import bumpy, common, pixie/demo, vmath, chroma, common +import bumpy, chroma, common, pixie/demo, vmath # The lines always overlap unless you get them to be perfectly parallel. diff --git a/examples/line2rect.nim b/examples/line2rect.nim index fcf1aad..c87cf60 100644 --- a/examples/line2rect.nim +++ b/examples/line2rect.nim @@ -1,4 +1,4 @@ -import bumpy, common, pixie/demo, vmath, chroma +import bumpy, chroma, common, pixie/demo, vmath # The lines always overlap unless you get them to be perfectly parallel. diff --git a/examples/line2seg.nim b/examples/line2seg.nim index 2ac878f..88f6a6a 100644 --- a/examples/line2seg.nim +++ b/examples/line2seg.nim @@ -1,4 +1,4 @@ -import bumpy, common, pixie/demo, vmath, chroma +import bumpy, chroma, common, pixie/demo, vmath # The lines always overlap unless you get them to be perfectly parallel. diff --git a/examples/point2circle.nim b/examples/point2circle.nim index 44e1028..819107e 100644 --- a/examples/point2circle.nim +++ b/examples/point2circle.nim @@ -1,4 +1,4 @@ -import bumpy, common, pixie/demo, vmath, chroma +import bumpy, chroma, common, pixie/demo, vmath var a: Vec2 diff --git a/examples/point2line.nim b/examples/point2line.nim index 72bc8f7..29e1b45 100644 --- a/examples/point2line.nim +++ b/examples/point2line.nim @@ -1,4 +1,4 @@ -import bumpy, common, pixie/demo, vmath, chroma +import bumpy, chroma, common, pixie/demo, vmath # The lines always overlap unless you get them to be perfectly parallel. diff --git a/examples/point2point.nim b/examples/point2point.nim index 4aa2ff0..9655611 100644 --- a/examples/point2point.nim +++ b/examples/point2point.nim @@ -1,4 +1,4 @@ -import bumpy, common, pixie/demo, vmath, chroma +import bumpy, chroma, common, pixie/demo, vmath var a, b: Vec2 b.x = 300 diff --git a/examples/point2rect.nim b/examples/point2rect.nim index f48c259..ad1375d 100644 --- a/examples/point2rect.nim +++ b/examples/point2rect.nim @@ -1,4 +1,4 @@ -import bumpy, common, pixie/demo, vmath, chroma +import bumpy, chroma, common, pixie/demo, vmath var a: Vec2 diff --git a/examples/point2seg.nim b/examples/point2seg.nim index 14dfe09..2afb305 100644 --- a/examples/point2seg.nim +++ b/examples/point2seg.nim @@ -1,4 +1,4 @@ -import bumpy, common, pixie/demo, vmath, chroma +import bumpy, chroma, common, pixie/demo, vmath var a: Vec2 diff --git a/examples/poly2circle.nim b/examples/poly2circle.nim index badc761..fb5829e 100644 --- a/examples/poly2circle.nim +++ b/examples/poly2circle.nim @@ -1,4 +1,4 @@ -import bumpy, pixie/demo, vmath, chroma, common +import bumpy, chroma, common, pixie/demo, vmath var poly: seq[Vec2] diff --git a/examples/poly2point.nim b/examples/poly2point.nim index 00eb674..9fed10f 100644 --- a/examples/poly2point.nim +++ b/examples/poly2point.nim @@ -1,4 +1,4 @@ -import bumpy, pixie/demo, vmath, chroma, common +import bumpy, chroma, common, pixie/demo, vmath var poly: seq[Vec2] diff --git a/examples/poly2poly.nim b/examples/poly2poly.nim index 20962e9..77c1aea 100644 --- a/examples/poly2poly.nim +++ b/examples/poly2poly.nim @@ -1,4 +1,4 @@ -import bumpy, pixie/demo, vmath, chroma, common +import bumpy, chroma, common, pixie/demo, vmath var a: seq[Vec2] diff --git a/examples/poly2rect.nim b/examples/poly2rect.nim index 52cbc2b..eb359c9 100644 --- a/examples/poly2rect.nim +++ b/examples/poly2rect.nim @@ -1,4 +1,4 @@ -import bumpy, pixie/demo, pixie, vmath, chroma, common +import bumpy, chroma, common, pixie, pixie/demo, vmath var poly: seq[Vec2] diff --git a/examples/poly2seg.nim b/examples/poly2seg.nim index 870965d..60a5f21 100644 --- a/examples/poly2seg.nim +++ b/examples/poly2seg.nim @@ -1,4 +1,4 @@ -import bumpy, pixie/demo, vmath, chroma, common +import bumpy, chroma, common, pixie/demo, vmath var poly: seq[Vec2] diff --git a/examples/rect2rect.nim b/examples/rect2rect.nim index a5205cf..c51a455 100644 --- a/examples/rect2rect.nim +++ b/examples/rect2rect.nim @@ -1,4 +1,4 @@ -import bumpy, common, pixie/demo, vmath, chroma +import bumpy, chroma, common, pixie/demo, vmath var a: Rect diff --git a/examples/seg2rect.nim b/examples/seg2rect.nim index 46974d9..e316f74 100644 --- a/examples/seg2rect.nim +++ b/examples/seg2rect.nim @@ -1,4 +1,5 @@ -import bumpy, pixie/demo, vmath, chroma +import bumpy, chroma, pixie/demo, vmath + var s: Segment r: Rect diff --git a/examples/seg2seg.nim b/examples/seg2seg.nim index 92cb14d..978b04b 100644 --- a/examples/seg2seg.nim +++ b/examples/seg2seg.nim @@ -1,4 +1,5 @@ -import bumpy, pixie/demo, vmath, chroma +import bumpy, chroma, pixie/demo, vmath + var d: Segment s: Segment diff --git a/examples/tri2point.nim b/examples/tri2point.nim index 4742e78..4f01c52 100644 --- a/examples/tri2point.nim +++ b/examples/tri2point.nim @@ -1,4 +1,4 @@ -import bumpy, pixie/demo, vmath, chroma, common +import bumpy, chroma, common, pixie/demo, vmath var tri: seq[Vec2] diff --git a/src/bumpy.nim b/src/bumpy.nim index 985832d..cbfe748 100644 --- a/src/bumpy.nim +++ b/src/bumpy.nim @@ -1,4 +1,4 @@ -import vmath, algorithm +import algorithm, vmath type Circle* = object