commit 71cbe2cef0e6ea8e1173912c5b161f24d73fe2d7 parent e6c4e67fdf960aa2708afb6c27f341d2c0b7c7b4 Author: Jack Mordaunt <jackmordaunt.dev@gmail.com> Date: Sun, 6 Jul 2025 16:31:18 -0300 example: print all nested data Diffstat:
| M | example/example.odin | | | 8 | ++++++++ |
1 file changed, 8 insertions(+), 0 deletions(-)
diff --git a/example/example.odin b/example/example.odin @@ -3,6 +3,7 @@ package main import "core:fmt" import "core:os/os2" import "core:path/filepath" +import "core:slice" import nanosvg "../" @@ -29,7 +30,14 @@ main :: proc() { fmt.println(img) for shape := img.shapes; shape != nil; shape = shape.next { + fmt.println() fmt.println(shape) + for path := shape.paths; path != nil; path = path.next { + fmt.println(path) + for path in slice.from_ptr(path.pts, int(path.npts)) { + fmt.println(path) + } + } } }