From 3ee94939fbb7e2bb41d3d12c46cca5a68058edf9 Mon Sep 17 00:00:00 2001 From: Jules <69435563+itsjoopark@users.noreply.github.com> Date: Fri, 12 Apr 2024 14:28:12 -0400 Subject: [PATCH 1/2] Added new sketch examples.js Added voronoi sketch example to show up on voronoi editor --- examples.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/examples.js b/examples.js index d5c1f8f..5b9a56b 100644 --- a/examples.js +++ b/examples.js @@ -32,6 +32,13 @@ noise( () => Math.sin(time/10)*50 , () => Math.sin(time/2)/500 ) es: "default", ja: "デフォルト", } + + code: `voronoi(10, 1.5, 0.4).color(1, 0, 3,).out(o0)`, + comments: { + en: "Make it move faster and add some color with color(r, g, b)", + es: "default", + ja: "デフォルト", + } }, { code: `voronoi(25,2,10).color(1,1,0).brightness(0.15).out(o0)`, From 3a54500f5fc28877d5d081eeb0bb9493d84f395d Mon Sep 17 00:00:00 2001 From: Jules <69435563+itsjoopark@users.noreply.github.com> Date: Fri, 12 Apr 2024 15:01:03 -0400 Subject: [PATCH 2/2] Updated sketch example Added another sketch example for voronoi() function --- examples.js | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/examples.js b/examples.js index 5b9a56b..78b9700 100644 --- a/examples.js +++ b/examples.js @@ -32,13 +32,6 @@ noise( () => Math.sin(time/10)*50 , () => Math.sin(time/2)/500 ) es: "default", ja: "デフォルト", } - - code: `voronoi(10, 1.5, 0.4).color(1, 0, 3,).out(o0)`, - comments: { - en: "Make it move faster and add some color with color(r, g, b)", - es: "default", - ja: "デフォルト", - } }, { code: `voronoi(25,2,10).color(1,1,0).brightness(0.15).out(o0)`, @@ -48,6 +41,14 @@ noise( () => Math.sin(time/10)*50 , () => Math.sin(time/2)/500 ) ja: "蛍", } } + { + code: `voronoi(10,5,3).color(1,1,0).out(o0)`, + comments: { + en: "make it faster and add some color with color(r, g, b)", + es: "hazlo más rápido y agrega algo de color con color(r, g, b)", + ja: "より速くして、color(r, g, b)で色を追加します。", + } + } ] }, osc: {