summaryrefslogtreecommitdiff
path: root/julia/julia.js
diff options
context:
space:
mode:
authorElizabeth (Lizzy) Hunt <elizabeth.hunt@simponic.xyz>2023-10-24 23:44:38 -0600
committerGitHub <noreply@github.com>2023-10-24 23:44:38 -0600
commit080211a78870c684400ab9f74f08ca04be153c0b (patch)
tree583b2dd6ba8f4e8c88c84a6dfc74e8b95def7309 /julia/julia.js
parent22258746502640c8b48b94f9f6dc10edfd5a7073 (diff)
parent7f8392f6294f415b7c223bd831db5082ca614db4 (diff)
downloadsimponic.xyz-080211a78870c684400ab9f74f08ca04be153c0b.tar.gz
simponic.xyz-080211a78870c684400ab9f74f08ca04be153c0b.zip
Merge pull request #2 from Simponic/turing-machine
Turing machine
Diffstat (limited to 'julia/julia.js')
-rw-r--r--julia/julia.js2
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);