alordash / newton-fractal

Drawing Newton's fractal using pure js, rust-wasm, SIMDs, threads and GPU

Home Page:https://alordash.github.io/newton-fractal/www/index.html

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Newton's fractal

Runtime Newton's fractal renderer.

>>Click<< to open in your browser

Inspired by 3blue1brown's video about Newton's fractal.

Demo preview

Build

  1. Rust-wasm: wasm-pack build --target web
  2. TypeScript: tsc

Drawing techniques

2. Rust-WASM: scalar fractal_calculation.rs and geometry.rs

3. Rust-WASM: SIMD commands fractal_calculation.rs and simd_math.rs (includes comments)

4. GPU glslsources: webgl2_drawing.ts and gl_manager.ts
shaders: vertex.vert and fragment.frag

5. Multithreading for 1-3 techniquesdrawing_manager.ts and drawing_worker.ts

About

Drawing Newton's fractal using pure js, rust-wasm, SIMDs, threads and GPU

https://alordash.github.io/newton-fractal/www/index.html


Languages

Language:TypeScript 40.6%Language:Rust 21.7%Language:JavaScript 19.3%Language:HTML 14.1%Language:GLSL 4.4%