From f09b4c66f009b65825f8540fe121afc545c43225 Mon Sep 17 00:00:00 2001 From: Joshua Seigler Date: Sun, 10 Nov 2019 15:16:58 -0500 Subject: [PATCH] Begin sketch 4, cells --- app/sketch-template.html | 1 + app/sketches/2.js | 2 +- app/sketches/3.js | 2 +- brunch-config.js | 6 +++++- package-lock.json | 5 +++++ package.json | 7 ++++--- 6 files changed, 17 insertions(+), 6 deletions(-) diff --git a/app/sketch-template.html b/app/sketch-template.html index b5399d6..0edf41c 100644 --- a/app/sketch-template.html +++ b/app/sketch-template.html @@ -9,6 +9,7 @@ + diff --git a/app/sketches/2.js b/app/sketches/2.js index 75e83ac..87812c9 100644 --- a/app/sketches/2.js +++ b/app/sketches/2.js @@ -1,5 +1,5 @@ new p5(sketch => { - sketch.disableFriendlyErrors = false; + sketch.disableFriendlyErrors = true; // reused dimensions and a seed let seed, width, height, maxD, goalInstances, intensityNoiseResolution, colorNoiseResolution, blurQuality, filenamePrefix; // images diff --git a/app/sketches/3.js b/app/sketches/3.js index e4453be..062adac 100644 --- a/app/sketches/3.js +++ b/app/sketches/3.js @@ -1,5 +1,5 @@ new p5(sketch => { - sketch.disableFriendlyErrors = false; + sketch.disableFriendlyErrors = true; // reused dimensions and a seed let seed, width, height, noiseResolution; // offscreen layers diff --git a/brunch-config.js b/brunch-config.js index d10b47a..b60f383 100644 --- a/brunch-config.js +++ b/brunch-config.js @@ -18,7 +18,11 @@ exports.plugins = { ignored: /^node_modules/ }, copycat:{ - modules: ['node_modules/p5/lib/p5.min.js', 'node_modules/p5/lib/addons/p5.sound.min.js'], + modules: [ + 'node_modules/p5/lib/p5.min.js', + 'node_modules/p5/lib/addons/p5.sound.min.js', + 'node_modules/voronoi/rhill-voronoi-core.min.js' + ], verbose : true, onlyChanged: true } diff --git a/package-lock.json b/package-lock.json index 79e744f..2d72ae9 100644 --- a/package-lock.json +++ b/package-lock.json @@ -5274,6 +5274,11 @@ "indexof": "0.0.1" } }, + "voronoi": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/voronoi/-/voronoi-1.0.0.tgz", + "integrity": "sha1-wIPK+pjENZpRgBi/6IYkyyJ6wpE=" + }, "which": { "version": "1.3.1", "resolved": "https://registry.npmjs.org/which/-/which-1.3.1.tgz", diff --git a/package.json b/package.json index 7e40161..1801b0a 100644 --- a/package.json +++ b/package.json @@ -5,13 +5,14 @@ "repository": "", "scripts": { "start": "brunch watch --server", - "build": "rm -rf dist/ && brunch build --production", + "build": "rm -rf public/ && brunch build --production", "deploy": "npm run build && npm run push-gh-pages", - "push-gh-pages": "git-directory-deploy --directory dist/" + "push-gh-pages": "git-directory-deploy --directory public/" }, "version": "1.0.0", "dependencies": { - "p5": "^0.10.2" + "p5": "^0.10.2", + "voronoi": "^1.0.0" }, "devDependencies": { "auto-reload-brunch": "^2.7.1",