From 2ba24ff7c20bec7dd75fe683467314d3928100bc Mon Sep 17 00:00:00 2001 From: nicwands Date: Tue, 21 Jul 2026 12:22:50 -0400 Subject: [PATCH] update content meta --- drops/endless-journal/public/meta.json | 4 +- drops/flowmap/public/meta.json | 26 ++- drops/image-melody/public/meta.json | 4 +- drops/noise-shader/public/meta.json | 4 +- .../src/libs/glsl/noise-image/frag.glsl | 2 - drops/testing/index.html | 13 -- drops/testing/package.json | 21 --- drops/testing/public/favicon.png | Bin 1580 -> 0 bytes drops/testing/public/meta.json | 56 ------- drops/testing/src/App.vue | 17 -- drops/testing/src/components/Btn.vue | 152 ------------------ drops/testing/src/components/Testing.vue | 32 ---- drops/testing/src/libs/math.js | 20 --- drops/testing/src/main.js | 6 - drops/testing/src/styles/main.scss | 1 - drops/testing/vite.config.js | 50 ------ 16 files changed, 18 insertions(+), 390 deletions(-) delete mode 100644 drops/testing/index.html delete mode 100644 drops/testing/package.json delete mode 100644 drops/testing/public/favicon.png delete mode 100644 drops/testing/public/meta.json delete mode 100644 drops/testing/src/App.vue delete mode 100644 drops/testing/src/components/Btn.vue delete mode 100644 drops/testing/src/components/Testing.vue delete mode 100644 drops/testing/src/libs/math.js delete mode 100644 drops/testing/src/main.js delete mode 100644 drops/testing/src/styles/main.scss delete mode 100644 drops/testing/vite.config.js diff --git a/drops/endless-journal/public/meta.json b/drops/endless-journal/public/meta.json index 663e717..08f5d3e 100644 --- a/drops/endless-journal/public/meta.json +++ b/drops/endless-journal/public/meta.json @@ -1,7 +1,7 @@ { "name": "endless-journal", "title": "Endless Journal", - "date": "2026-07-20", + "date": "2025-02-03", "tags": [ "Process" ], @@ -121,4 +121,4 @@ ] }, "published": true -} +} \ No newline at end of file diff --git a/drops/flowmap/public/meta.json b/drops/flowmap/public/meta.json index 511bb21..e121f11 100644 --- a/drops/flowmap/public/meta.json +++ b/drops/flowmap/public/meta.json @@ -9,31 +9,29 @@ "content": [ { "type": "text", - "text": "I used a fluid simulation in webgl to create this flowmap with arrows showing the direction or \"current\" within the flow field." + "text": "Using the OGL fluid simulation example as a starting point, this webgl experiment renders a flowmap of arrows that follow the \"current\" of the fluid." } ] }, - { - "type": "paragraph" - }, { "type": "paragraph", "content": [ + { + "type": "text", + "text": "The arrows are rendered by creating a buffer geometry with " + }, { "type": "text", "marks": [ { - "type": "link", - "attrs": { - "href": "https://github.com/oframe/ogl/blob/master/examples/post-fluid-distortion.html", - "target": "_blank", - "rel": "noopener noreferrer nofollow", - "class": null, - "title": null - } + "type": "code" } ], - "text": "https://github.com/oframe/ogl/blob/master/examples/post-fluid-distortion.html" + "text": "InstancedMesh" + }, + { + "type": "text", + "text": " to create a grid of arrows that covers the screen. The direction and size of the arrows is then manipulated in the vector shader to follow the velocity at that point in the simulation." } ] } @@ -44,4 +42,4 @@ "visualization" ], "published": true -} +} \ No newline at end of file diff --git a/drops/image-melody/public/meta.json b/drops/image-melody/public/meta.json index efc2955..62cd49b 100644 --- a/drops/image-melody/public/meta.json +++ b/drops/image-melody/public/meta.json @@ -1,7 +1,7 @@ { "name": "image-melody", "title": "Image Melody", - "date": "2026-07-20", + "date": "2026-01-30", "tags": [ "tag1", "tag2", @@ -15,7 +15,7 @@ "content": [ { "type": "text", - "text": "My friend Patrick wanted to try generating music from an image. I made this simple experiment which plays notes in a scale based on some of the color values in a pixelated version of the image." + "text": "This experiment processes an image and creates a simple melody from the image data. To do this, the image is pixelated to a 5x5 resolution and sampled to determine the order of the notes. The notes for this example are chosen from the C Major pentatonic scale so that they will sound \"musical\" in any order." } ] } diff --git a/drops/noise-shader/public/meta.json b/drops/noise-shader/public/meta.json index 64d571d..e476ada 100644 --- a/drops/noise-shader/public/meta.json +++ b/drops/noise-shader/public/meta.json @@ -1,7 +1,7 @@ { "name": "noise-shader", "title": "Noise Shader", - "date": "2026-07-20", + "date": "2025-05-20", "tags": [ "tag1", "tag2", @@ -15,7 +15,7 @@ "content": [ { "type": "text", - "text": "I was messing around with a shader to add noise to a texture, and ended up getting this cool effect when I divided the noise value by the distance to the user's mouse." + "text": "This shader uses randomized noise combined with a two bit filter, and a mouse distance multiplier to create this interesting effect that almost feels like a flashlight in the darkness." } ] } diff --git a/drops/noise-shader/src/libs/glsl/noise-image/frag.glsl b/drops/noise-shader/src/libs/glsl/noise-image/frag.glsl index 67aff8a..62f0c0e 100644 --- a/drops/noise-shader/src/libs/glsl/noise-image/frag.glsl +++ b/drops/noise-shader/src/libs/glsl/noise-image/frag.glsl @@ -27,8 +27,6 @@ void main() { float aspectRatio = u_resolution.x / u_resolution.y; vec2 st = vec2(v_uv.x * aspectRatio, v_uv.y); vec2 st_mouse = vec2(u_mouse.x * aspectRatio, u_mouse.y); - // vec2 st_mouse = vec2(0.5,0.5); - float distance = max(0.6, distance(st, st_mouse) * 10.); diff --git a/drops/testing/index.html b/drops/testing/index.html deleted file mode 100644 index 9c259e7..0000000 --- a/drops/testing/index.html +++ /dev/null @@ -1,13 +0,0 @@ - - - - - - - Testing - - -
- - - diff --git a/drops/testing/package.json b/drops/testing/package.json deleted file mode 100644 index fe5a6fb..0000000 --- a/drops/testing/package.json +++ /dev/null @@ -1,21 +0,0 @@ -{ - "name": "testing", - "private": true, - "version": "0.0.0", - "type": "module", - "scripts": { - "dev": "vite", - "build": "vite build", - "preview": "vite preview" - }, - "dependencies": { - "sass": "^1.98.0", - "sass-embedded": "^1.98.0", - "vue": "^3.5.30", - "@fuzzco/font-loader": "^1.0.2" - }, - "devDependencies": { - "@vitejs/plugin-vue": "^6.0.5", - "vite": "^8.0.0" - } -} diff --git a/drops/testing/public/favicon.png b/drops/testing/public/favicon.png deleted file mode 100644 index 792433de928349167d33d4fd9bb6d2ad72801da5..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1580 zcmbu5YdF&j0LK5s+SUzuXu8Oq4Y8V`a%*ODSxYX}=CaPvsT}uCH}@T}70qSxAQF-Z zC28VhESDl=ZsoF-br6|4Y+-iv?VQi&eV+IIeRw~-&-11c2`<~9T2KH0w&8IY&kZL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C|dCbDW6htb$>ZrN20E_|Glw1o_yfqAc@aw(Jw3PyC zZ_a>?BE+A(ZnSZq#6&n*PE0gRS_}yoEa8F7)yN)q`>WgQ1kt5&F|A9N_T_^MX45b+zC+A2WY{-*7>wUN>o@B)m|JUh>~vPUZ}r{l zZsbx_bX-H z*=f7)Isf7(QMDZ>Wv2*Q(BAzJZWQAqVOjVJG0Aet_(;J8QPY$yuFPCjV^tV8o?0Yh zo9CV_iC4#Z0~bQ&{ng2?Hv9~ys>TzN$1N}2(?Z{P(D|>y6Xq~ zTfK{S1!Gy6RhvfVyD2O9ZyDi{xKMFrA -
- -
- - - - - diff --git a/drops/testing/src/components/Btn.vue b/drops/testing/src/components/Btn.vue deleted file mode 100644 index 66e1996..0000000 --- a/drops/testing/src/components/Btn.vue +++ /dev/null @@ -1,152 +0,0 @@ - - - - - diff --git a/drops/testing/src/components/Testing.vue b/drops/testing/src/components/Testing.vue deleted file mode 100644 index c68c173..0000000 --- a/drops/testing/src/components/Testing.vue +++ /dev/null @@ -1,32 +0,0 @@ - - - - - diff --git a/drops/testing/src/libs/math.js b/drops/testing/src/libs/math.js deleted file mode 100644 index 62183bd..0000000 --- a/drops/testing/src/libs/math.js +++ /dev/null @@ -1,20 +0,0 @@ -export function clamp(min, input, max) { - return Math.max(min, Math.min(input, max)); -} - -export function mapRange(in_min, in_max, input, out_min, out_max) { - return ((input - in_min) * (out_max - out_min)) / (in_max - in_min) + out_min; -} - -export function lerp(start, end, amt) { - return (1 - amt) * start + amt * end; -} - -export function truncate(value, decimals) { - return parseFloat(value.toFixed(decimals)); -} - -export function wrapValue(value, lowBound, highBound) { - const range = highBound - lowBound; - return ((((value - lowBound) % range) + range) % range) + lowBound; -} diff --git a/drops/testing/src/main.js b/drops/testing/src/main.js deleted file mode 100644 index 91e76b3..0000000 --- a/drops/testing/src/main.js +++ /dev/null @@ -1,6 +0,0 @@ -import '@shared/styles/shared.scss' -import './styles/main.scss' -import { createApp } from 'vue' -import App from './App.vue' - -createApp(App).mount('#app') diff --git a/drops/testing/src/styles/main.scss b/drops/testing/src/styles/main.scss deleted file mode 100644 index 7089c0f..0000000 --- a/drops/testing/src/styles/main.scss +++ /dev/null @@ -1 +0,0 @@ -/* Drop specific styles */ diff --git a/drops/testing/vite.config.js b/drops/testing/vite.config.js deleted file mode 100644 index f1cd91c..0000000 --- a/drops/testing/vite.config.js +++ /dev/null @@ -1,50 +0,0 @@ -import { fileURLToPath, URL } from 'node:url' -import { defineConfig } from 'vite' -import vue from '@vitejs/plugin-vue' -import config from '../../shared/config.js' -import { toSass } from '../../shared/libs/sass/index.js' - -export default defineConfig({ - plugins: [vue()], - server: { - port: 3000, - }, - resolve: { - alias: { - '@': fileURLToPath(new URL('./src', import.meta.url)), - '@shared': fileURLToPath(new URL('../../shared', import.meta.url)), - }, - }, - base: '/drops/testing/', - build: { - outDir: '../../app/public/drops/testing', - emptyOutDir: true, - }, - css: { - preprocessorOptions: { - scss: { - api: 'modern-compiler', - additionalData: - '@use "@shared/styles/_functions.scss" as *; @use "@shared/styles/_font-style.scss" as *;', - functions: { - 'get($keys)': function (keys) { - keys = keys.toString().replace(/['"]+/g, '').split('.') - - let result = config - for (let i = 0; i < keys.length; i++) { - result = result[keys[i]] - } - - return toSass(result) - }, - 'getColors()': function () { - return toSass(config.colors) - }, - 'getThemes()': function () { - return toSass(config.themes) - }, - }, - }, - }, - }, -})