Edit photos by describing the change, on your own GPU. A free, open-source alternative to Nano Banana and ChatGPT image editing: photos stay on your computer, no daily limit. One installer for Windows, Mac and Linux sets up the best open model (Qwen-Image 2.1). MCP server for AI agents.
TypeScript ai-photo-editorcomfyui-alternativegenerative-fillimage-editingimage-generationinpaintinglinuxlocal-aimacosmcpmcp-servernano-banana-alternativeofflinephoto-editorprivacyqwen-imageqwen-image-2-1stable-diffusion-cppvulkanwindows
cocoon: a softer, smaller logo when a result hatches (no near-white flash on dark screens)
Gabriele Lozupone77e8e9381980
diff --git a/src/components/Cocoon.tsx b/src/components/Cocoon.tsxindex 4c8d7de..f37fc99 100644--- a/src/components/Cocoon.tsx+++ b/src/components/Cocoon.tsx@@ -42,7 +42,7 @@ interface MarkLayout {}export function markLayout(w: number, h: number): MarkLayout {- let sh = h * 0.48;+ let sh = h * 0.38;sh = Math.min(sh, (w * 0.8 * STEM_H) / 1024, (w * 0.5) / STEM_RATIO);const scale = sh / STEM_H;const cy = h * 0.43;@@ -236,7 +236,7 @@ export function Cocoon({ src, pct, form, dim }: { src?: string; pct: number; forif (!ctx) return;const threads = makeThreads(THREADS);const still = reducedMotion();- let ink = getComputedStyle(document.documentElement).getPropertyValue("--text").trim() || "#ffffff";+ let ink = getComputedStyle(document.documentElement).getPropertyValue("--mark").trim() || "#9a9a9a";let lastInk = 0;let formStart: number | null = null;let raf = 0;@@ -245,7 +245,7 @@ export function Cocoon({ src, pct, form, dim }: { src?: string; pct: number; forconst draw = (now: number) => {const t = still ? 0 : (now - t0) / 1000;if (now - lastInk > 1000) {- ink = getComputedStyle(document.documentElement).getPropertyValue("--text").trim() || ink;+ ink = getComputedStyle(document.documentElement).getPropertyValue("--mark").trim() || ink;lastInk = now;}const { pct: pctNow, form: formNow } = live.current;diff --git a/src/styles.css b/src/styles.cssindex 8ff1b13..8e952ac 100644--- a/src/styles.css+++ b/src/styles.css@@ -15,6 +15,8 @@--text: #0d0d0d;--text-2: #555555;--text-3: #737373;+ /* the cocoon's threads and the solid logo a result hatches from */+ --mark: #0d0d0d;--invert-bg: #0d0d0d;--invert-text: #ffffff;--scrim: rgba(244, 244, 244, 0.84);@@ -50,6 +52,8 @@--text: #f2f2f2;--text-2: #a8a8a8;--text-3: #858585;+ /* softer than --text: a big near-white logo flashing on a dark screen hurts the eyes */+ --mark: #9a9a9a;--invert-bg: #f2f2f2;--invert-text: #0a0a0a;--scrim: rgba(10, 10, 10, 0.85);@@ -209,7 +213,7 @@ svg { display: block; flex: none; }.hatch-veil svg { display: none; position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; will-change: opacity, filter; }.hatch-veil path { fill: var(--bg); }.hatch-ink { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2; pointer-events: none; overflow: visible; }-.hatch-ink path { fill: var(--text); }+.hatch-ink path { fill: var(--mark); }.pending-title { color: var(--text); font-weight: 600; font-size: 14px; }/* The title shares the top row with Stop: it keeps clear of it on both sides (so it stays centred)and shortens to one line. */