summaryrefslogtreecommitdiff
path: root/src/toys/julia
diff options
context:
space:
mode:
Diffstat (limited to 'src/toys/julia')
-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);