diff options
author | Elizabeth Hunt <elizabeth.hunt@simponic.xyz> | 2023-10-24 19:54:58 -0600 |
---|---|---|
committer | Elizabeth Hunt <elizabeth.hunt@simponic.xyz> | 2023-10-24 19:54:58 -0600 |
commit | d6b885b318f68f9be19fd3dcc4d77e0f30f25ff5 (patch) | |
tree | 79ad07f15cfcdf25b77aaf682341ee780dfa23f6 /julia/julia.js | |
parent | 1d15cdcb2aa463ce0aa1ab176605036cc15db2be (diff) | |
download | simponic.xyz-d6b885b318f68f9be19fd3dcc4d77e0f30f25ff5.tar.gz simponic.xyz-d6b885b318f68f9be19fd3dcc4d77e0f30f25ff5.zip |
fix julia renderer in chrome
Diffstat (limited to 'julia/julia.js')
-rw-r--r-- | julia/julia.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/julia/julia.js b/julia/julia.js index 0099137..7727d48 100644 --- a/julia/julia.js +++ b/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 GPU(); +const gpu = new GPUX(); 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); |