summaryrefslogtreecommitdiff
path: root/src/toys/julia/julia.js
diff options
context:
space:
mode:
authorElizabeth Hunt <me@liz.coffee>2026-01-07 19:44:39 -0800
committerElizabeth Hunt <me@liz.coffee>2026-01-07 19:50:38 -0800
commit25802ee97976fc5b4868ebbc1a8ebd8c596feb86 (patch)
tree63c7bf82a57b79ac03d5392ef69463dc935cef8b /src/toys/julia/julia.js
parent92a8abf1a9c26c3e0cd71d58b81f87b09efff170 (diff)
downloadlizdotcoffee-25802ee97976fc5b4868ebbc1a8ebd8c596feb86.tar.gz
lizdotcoffee-25802ee97976fc5b4868ebbc1a8ebd8c596feb86.zip
Use julia gpu.js correct constructor
Diffstat (limited to 'src/toys/julia/julia.js')
-rw-r--r--src/toys/julia/julia.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/toys/julia/julia.js b/src/toys/julia/julia.js
index 7727d48..38bcd4d 100644
--- a/src/toys/julia/julia.js
+++ b/src/toys/julia/julia.js
@@ -3,7 +3,7 @@ const MAX_ZOOM = 4;
const C_THRESHOLD = Math.sqrt(2)/2;
const SLIDER_DIV = 2000*C_THRESHOLD;
-const gpu = new GPUX();
+const gpu = new GPU.GPU();
const buildRender = (width, height) => gpu.createKernel(function (maxIterations, cr, ci, centerX, centerY, zoom, colorMultipliers) {
let zx = (this.output.x / this.output.y) * (centerX + (4 * this.thread.x / this.output.x - 2) * (zoom / 4));
let zy = centerY + (4 * this.thread.y / this.output.y - 2) * (zoom / 4);