Categorygithub.com/nicholasblaskey/svg-rasterizer
repositorypackage
0.0.0-20210926010722-095ab7ea61b1
Repository: https://github.com/nicholasblaskey/svg-rasterizer.git
Documentation: pkg.go.dev

# Packages

No description provided by the author
No description provided by the author
No description provided by the author

# README

svg-rasterizer

An software rasterizer using Go and Wasm that is displayed with WebGL in a browser environment.

It is not spec compliant or even close and was done to dive into some basics of how rasterizers work.

It is based on the CMU assignment for DrawSVG.

Building

First build the webasm file (run in root of this directory)

GOOS=js GOARCH=wasm go build -o o.wasm rasterizer/rasterizer.go

Then start an http server that has support for hosting wasm files properly

go run main.go

Finally go to

http://127.0.0.1:8080/