aboutsummaryrefslogtreecommitdiff
path: root/src/rope.odin
diff options
context:
space:
mode:
Diffstat (limited to 'src/rope.odin')
-rw-r--r--src/rope.odin6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/rope.odin b/src/rope.odin
index f66a3bb..b321dab 100644
--- a/src/rope.odin
+++ b/src/rope.odin
@@ -25,7 +25,11 @@ draw_ropes :: proc() {
for i in 0..<len(rope.verlet.nodes) - 1 {
cur := rope.verlet.nodes[i]
nex := rope.verlet.nodes[i + 1]
- rl.DrawLineV(cur.pos, nex.pos, rl.WHITE)
+ rl.DrawLineV(
+ linalg.round(cur.pos),
+ linalg.round(nex.pos),
+ rl.Color{76, 62, 36, 255},
+ )
}
a := rope.verlet.nodes[len(rope.verlet.nodes) - 1]