Skip to content

Commit 507cb5f

Browse files
authored
Merge pull request #41 from guzba/master
0.0.8 export for typography
2 parents 56365f3 + 1b4095a commit 507cb5f

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

pixie.nimble

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
version = "0.0.7"
1+
version = "0.0.8"
22
author = "Andre von Houck and Ryan Oldenburg"
33
description = "Full-featured 2d graphics library for Nim."
44
license = "MIT"

src/pixie/paths.nim

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -498,12 +498,12 @@ proc commandsToPolygons*(commands: seq[PathCommand]): seq[seq[Vec2]] =
498498
if polygon.len > 0:
499499
result.add(polygon)
500500

501-
iterator zipline[T](s: seq[T]): (T, T) =
501+
iterator zipline*[T](s: seq[T]): (T, T) =
502502
## Return elements in pairs: (1st, 2nd), (2nd, 3rd) ... (nth, last).
503503
for i in 0 ..< s.len - 1:
504504
yield(s[i], s[i + 1])
505505

506-
iterator segments(s: seq[Vec2]): Segment =
506+
iterator segments*(s: seq[Vec2]): Segment =
507507
## Return elements in pairs: (1st, 2nd), (2nd, 3rd) ... (last, 1st).
508508
for i in 0 ..< s.len - 1:
509509
yield(Segment(at: s[i], to: s[i + 1]))

0 commit comments

Comments
 (0)