Skip to content

Commit

Permalink
minor(examples): minor update zig-test
Browse files Browse the repository at this point in the history
  • Loading branch information
postspectacular committed Jan 10, 2025
1 parent ea2f169 commit 8ff902f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 9 deletions.
1 change: 0 additions & 1 deletion examples/zig-test/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@
<script>
// use custom time provider
// $genart.setTimeProvider($genart.time.offline(250, 60));
$genart.setTimeProvider($genart.time.debug());
</script>
<script type="module" src="/src/index.ts"></script>
</body>
Expand Down
16 changes: 8 additions & 8 deletions examples/zig-test/zig/main.zig
Original file line number Diff line number Diff line change
Expand Up @@ -74,14 +74,14 @@ export fn start() void {
.max = 100,
.step = 1,
}),
genart.image(.{
.id = "img",
.name = "Test",
.width = 2,
.height = 2,
.format = .rgba,
.default = &[_]u32{ 0, 0, 0, 0 },
}),
// genart.image(.{
// .id = "img",
// .name = "Test",
// .width = 2,
// .height = 2,
// .format = .rgba,
// .default = &[_]u32{ 0, 0, 0, 0 },
// }),
},
// $genart.setParams() is an async function on the JS side.
// to simplify mechanics, we pass the setup() function (below) as callback
Expand Down

0 comments on commit 8ff902f

Please sign in to comment.