Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion examples/circle2circle.nim
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import bumpy, common, pixie/demo, vmath, chroma
import bumpy, chroma, common, pixie/demo, vmath

var
a: Circle
Expand Down
3 changes: 2 additions & 1 deletion examples/circle2line.nim
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import bumpy, common, pixie/demo, vmath, chroma
import bumpy, chroma, common, pixie/demo, vmath

var
c: Circle
l: Line
Expand Down
2 changes: 1 addition & 1 deletion examples/circle2rect.nim
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import bumpy, common, pixie/demo, vmath, chroma
import bumpy, chroma, common, pixie/demo, vmath

var
a: Circle
Expand Down
3 changes: 2 additions & 1 deletion examples/circle2seg.nim
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import bumpy, common, pixie/demo, vmath, chroma
import bumpy, chroma, common, pixie/demo, vmath

var
a: Circle
s: Segment
Expand Down
2 changes: 1 addition & 1 deletion examples/convexhull.nim
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import bumpy, pixie/demo, vmath, chroma, random, common
import bumpy, chroma, common, pixie/demo, random, vmath

var
points: seq[Vec2]
Expand Down
3 changes: 1 addition & 2 deletions examples/hull2hull.nim
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import bumpy, pixie/demo, vmath, chroma, random
import bumpy, chroma, pixie/demo, random, vmath

var
hull1: seq[Vec2]
Expand Down Expand Up @@ -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()

Expand Down
2 changes: 1 addition & 1 deletion examples/line2line.nim
Original file line number Diff line number Diff line change
@@ -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.

Expand Down
2 changes: 1 addition & 1 deletion examples/line2poly.nim
Original file line number Diff line number Diff line change
@@ -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.

Expand Down
2 changes: 1 addition & 1 deletion examples/line2rect.nim
Original file line number Diff line number Diff line change
@@ -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.

Expand Down
2 changes: 1 addition & 1 deletion examples/line2seg.nim
Original file line number Diff line number Diff line change
@@ -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.

Expand Down
2 changes: 1 addition & 1 deletion examples/point2circle.nim
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import bumpy, common, pixie/demo, vmath, chroma
import bumpy, chroma, common, pixie/demo, vmath

var
a: Vec2
Expand Down
2 changes: 1 addition & 1 deletion examples/point2line.nim
Original file line number Diff line number Diff line change
@@ -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.

Expand Down
2 changes: 1 addition & 1 deletion examples/point2point.nim
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion examples/point2rect.nim
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import bumpy, common, pixie/demo, vmath, chroma
import bumpy, chroma, common, pixie/demo, vmath

var
a: Vec2
Expand Down
2 changes: 1 addition & 1 deletion examples/point2seg.nim
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import bumpy, common, pixie/demo, vmath, chroma
import bumpy, chroma, common, pixie/demo, vmath

var
a: Vec2
Expand Down
2 changes: 1 addition & 1 deletion examples/poly2circle.nim
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import bumpy, pixie/demo, vmath, chroma, common
import bumpy, chroma, common, pixie/demo, vmath

var
poly: seq[Vec2]
Expand Down
2 changes: 1 addition & 1 deletion examples/poly2point.nim
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import bumpy, pixie/demo, vmath, chroma, common
import bumpy, chroma, common, pixie/demo, vmath

var
poly: seq[Vec2]
Expand Down
2 changes: 1 addition & 1 deletion examples/poly2poly.nim
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import bumpy, pixie/demo, vmath, chroma, common
import bumpy, chroma, common, pixie/demo, vmath

var
a: seq[Vec2]
Expand Down
2 changes: 1 addition & 1 deletion examples/poly2rect.nim
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import bumpy, pixie/demo, pixie, vmath, chroma, common
import bumpy, chroma, common, pixie, pixie/demo, vmath

var
poly: seq[Vec2]
Expand Down
2 changes: 1 addition & 1 deletion examples/poly2seg.nim
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import bumpy, pixie/demo, vmath, chroma, common
import bumpy, chroma, common, pixie/demo, vmath

var
poly: seq[Vec2]
Expand Down
2 changes: 1 addition & 1 deletion examples/rect2rect.nim
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import bumpy, common, pixie/demo, vmath, chroma
import bumpy, chroma, common, pixie/demo, vmath

var
a: Rect
Expand Down
3 changes: 2 additions & 1 deletion examples/seg2rect.nim
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import bumpy, pixie/demo, vmath, chroma
import bumpy, chroma, pixie/demo, vmath

var
s: Segment
r: Rect
Expand Down
3 changes: 2 additions & 1 deletion examples/seg2seg.nim
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import bumpy, pixie/demo, vmath, chroma
import bumpy, chroma, pixie/demo, vmath

var
d: Segment
s: Segment
Expand Down
2 changes: 1 addition & 1 deletion examples/tri2point.nim
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import bumpy, pixie/demo, vmath, chroma, common
import bumpy, chroma, common, pixie/demo, vmath

var
tri: seq[Vec2]
Expand Down
2 changes: 1 addition & 1 deletion src/bumpy.nim
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import vmath, algorithm
import algorithm, vmath

type
Circle* = object
Expand Down