Skip to content

Commit

Permalink
Fixing plasma example
Browse files Browse the repository at this point in the history
  • Loading branch information
jwagner committed Jul 23, 2022
1 parent b6040e0 commit bd64f22
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/plasma.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import {noiseFunction3D} from 'simplex-noise';
import {createNoise3D} from 'simplex-noise';

const canvas = document.createElement('canvas');
canvas.width = 512;
canvas.height = 512;
document.body.appendChild(canvas);

const noise3D = noiseFunction3D(),
const noise3D = createNoise3D(),
ctx = canvas.getContext('2d'),
imgdata = ctx.getImageData(0, 0, canvas.width, canvas.height),
width = imgdata.width,
Expand Down
1 change: 1 addition & 0 deletions examples/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,5 @@ module.exports = {
filename: '[name].html',
title: 'Simplex-Noise.js examples'
})],
mode: 'production'
};

0 comments on commit bd64f22

Please sign in to comment.