art-init
is used to create a directory containing code that
allows you to promptly get started with using Zig
to draw into a Canvas.
The Zig build .target
is declared as .{ .cpu_arch = .wasm32, .os_tag = .freestanding }
and .optimize
is set to .ReleaseSmall
Important
No need to specify -Doptimize=ReleaseSmall
(Requires you to have Go installed)
go install github.com/peterhellberg/art-init@latest
Note
Live reloading when using make run
is handled by
Live Server
which is launched by npx
so you will have to have
NPM installed.
(Requires you to have an up to date (nightly) version of Zig installed.
art-init mycanvas
cd mycanvas
make run
🌱