Render closing loops for completed patterns

This commit is contained in:
Alwinfy 2022-11-07 18:10:57 -05:00 committed by gamma-delta
parent 5f6eb40549
commit 8fbea3cca7

View file

@ -269,7 +269,7 @@ fun makeZappy(
return if (dupIndices != null) { return if (dupIndices != null) {
for ((i, pair) in barePoints.zipWithNext().withIndex()) { for ((i, pair) in barePoints.zipWithNext().withIndex()) {
val (head, tail) = pair val (head, tail) = pair
val tangent = tail.add(head.negated()).scale(readabilityOffset) val tangent = tail.add(head.negated()).scale(READABILITY_OFFSET)
if (i != 0 && dupIndices.contains(i)) { if (i != 0 && dupIndices.contains(i)) {
daisyChain.add(head.add(tangent)) daisyChain.add(head.add(tangent))
} else { } else {