Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/peterhellberg/art-init
Initialize a Zig ⚡ Art canvas project
https://github.com/peterhellberg/art-init
canvas template wasm
Last synced: 1 day ago
JSON representation
Initialize a Zig ⚡ Art canvas project
- Host: GitHub
- URL: https://github.com/peterhellberg/art-init
- Owner: peterhellberg
- License: other
- Created: 2024-09-02T14:19:48.000Z (5 months ago)
- Default Branch: main
- Last Pushed: 2024-12-11T12:27:35.000Z (about 1 month ago)
- Last Synced: 2024-12-11T13:28:31.792Z (about 1 month ago)
- Topics: canvas, template, wasm
- Language: Go
- Homepage:
- Size: 33.2 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# art-init :sparkles:
`art-init` is used to create a directory containing code that
allows you to promptly get started with using [Zig](https://ziglang.org/)
to draw into a [Canvas](https://developer.mozilla.org/en-US/docs/Web/API/Canvas_API).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`## Installation
(Requires you to have [Go](https://go.dev/) installed)
```sh
go install github.com/peterhellberg/art-init@latest
```> [!Note]
> Live reloading when using `make run` is handled by
> [Live Server](https://www.npmjs.com/package/live-server)
> which is launched by `npx` so you will have to have
> [NPM](https://www.npmjs.com/) installed.## Usage
(Requires you to have an up to date (_nightly_) version of
[Zig](https://ziglang.org/download/#release-master) installed.```sh
art-init mycanvas
cd mycanvas
make run
```:seedling: