Skip to content

MHSarmadi/Go-WASM-Mandelbrot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GO + WASM Mandelbrot set Drawer

Tip: Make a real quick web server on dist/ directory to see the magic.

Example image of result


For example if you have PHP installed, run:

cd dist
php -S localhost:8080

And then open localhost:8080 in your browser


Compiling main.go into main.wasm

Install the appropriate version of Go, then run:

GOOS=js GOARCH=wasm go build -o dist/main.wasm

This project is my practice after learning WASM in go.

You might like to contribute to develop it, I would be happy to see that.

TODO: The computer of the mandelbrot set needs a lot of optimizations. On my device, it renders a 1200x800 frame in 1-2 seconds.


Copyright 2025 MHSarmadi under MIT License

About

Drawing a mandelbrot set on a webpage, calculated in Go

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages