diff --git a/notes/experiential-art.txt b/notes/experiential-art.txt index eeb52a761e..e95b4f28f0 100644 --- a/notes/experiential-art.txt +++ b/notes/experiential-art.txt @@ -26,8 +26,10 @@ term is going to be. What is the actual media going to be? "Experiential art" is a rallying term both useful and transient. I wanna know what terms will stick to media forever. "GIF" sticks, "disk" sticks, and "App" sticks. -3. We believe that the future of the internet is spatial. What do you think? Does this mean anything to you? +3. We believe that the future of the internet is spatial. What do you think? + Does this mean anything to you? -4. What do you want to see develop in the space? (Space meaning the wider digital arts ecosystem) +4. What do you want to see develop in the space? + (Space meaning the wider digital arts ecosystem) 5. What/who, in the field of experiential art, inspires you the most? \ No newline at end of file diff --git a/system/public/aesthetic.computer/disks/prompt.mjs b/system/public/aesthetic.computer/disks/prompt.mjs index 4326c568bd..d23058f73a 100644 --- a/system/public/aesthetic.computer/disks/prompt.mjs +++ b/system/public/aesthetic.computer/disks/prompt.mjs @@ -44,6 +44,7 @@ let uploadProgress = 0; // If not zero, then draw a progress bar. // 🥾 Boot (Runs once before first paint and sim) function boot($) { const { + api, pieceCount, glaze, load, @@ -161,6 +162,10 @@ function boot($) { flashColor = [255, 0, 0, 100]; // Red for failed undo. } makeFlash($); + } else if (text === "nopan") { + system.nopaint.resetTransform(api); + system.nopaint.storeTransform(store, system); // Store the translation after completion. + input.text = ""; } else if (text === "painting:reset" || text === "no!") { const deleted = system.nopaint.noBang({ system, @@ -227,7 +232,7 @@ function boot($) { // Go to the Discord for now if anyone types help. jump("https://discord.gg/aesthetic-computer"); } else if (text === "shillball" || text === "sb") { - // Shortcuts for Yeche's Shillball game. + // Shortcuts for Yeche's Shillball game. jump("https://galerie-yechelange.baby/ball"); } else if (text === "prod") { jump("https://prompt.ac"); // Visit the live site. diff --git a/system/public/aesthetic.computer/lib/disk.mjs b/system/public/aesthetic.computer/lib/disk.mjs index 8060ba5de6..fc671da685 100644 --- a/system/public/aesthetic.computer/lib/disk.mjs +++ b/system/public/aesthetic.computer/lib/disk.mjs @@ -399,6 +399,10 @@ const $commonApi = { screen.height / 2 - sys.painting.height / 2 ); }, + storeTransform: (store, sys) => { + store["painting:transform"] = { translation: sys.nopaint.translation }; + store.persist("painting:transform", "local:db"); + }, translation: { x: 0, y: 0 }, translate: ({ system }, x, y) => { system.nopaint.translation.x += x; diff --git a/system/public/aesthetic.computer/systems/nopaint.mjs b/system/public/aesthetic.computer/systems/nopaint.mjs index ad2dd5e9ff..3d3dfe29b0 100644 --- a/system/public/aesthetic.computer/systems/nopaint.mjs +++ b/system/public/aesthetic.computer/systems/nopaint.mjs @@ -11,11 +11,6 @@ function nopaint_boot({ api, screen, system, painting, store }) { system.nopaint.present(api); } -function storeTransform(store, sys) { - store["painting:transform"] = { translation: sys.nopaint.translation }; - store.persist("painting:transform", "local:db"); -} - function nopaint_is(stateQuery) { return state === stateQuery; } @@ -46,7 +41,7 @@ function nopaint_act({ if (e.is("touch:1")) { state = "painting"; system.nopaint.updateBrush(api); - if (debug) console.log("🖌️ Painting!"); + // if (debug) console.log("🖌️ Painting!"); } // Track @@ -63,7 +58,7 @@ function nopaint_act({ ) { state = "idle"; system.nopaint.needsBake = true; - if (debug) console.log("🖌️ Not painting..."); + // if (debug) console.log("🖌️ Not painting..."); } // 🧭 Panning (held 'alt' key or two finger drag) @@ -73,7 +68,7 @@ function nopaint_act({ e.is("keyboard:down:alt") || ((e.is("touch:2") || e.is("touch:1")) && pens().length === 2) ) { - if (debug) console.log("🧭 Panning!"); + // if (debug) console.log("🧭 Panning!"); state = "panning"; } @@ -88,9 +83,9 @@ function nopaint_act({ nopaint_is("panning") && (e.is("keyboard:up:alt") || e.is("lift:2") || e.is("lift:1")) ) { - if (debug) console.log("🧭 Not panning..."); + // if (debug) console.log("🧭 Not panning..."); state = "idle"; - storeTransform(store, system); // Store the translation after completion. + syste.nopaint.storeTransform(store, system); // Store the translation after completion. } // Reset: By holding shift while alt is pressed down.