FR
FreeAmbulanceride/SoLUTion-v0.1
soLUTion 60:30:10 uses your phone's camera to measure the dominant, secondary and accent colors of your scene/shot in real time.
soLUTion 60:30:10 Studio (public beta 1.0)
Live on-device color metering, composition guides, and reference tools for cinematographers who need to hit the 60/30/10 balance before a take. The landing page lets you trigger the studio, the service worker/manifest make it installable, and the whole app runs in the browser with no backend.
Features
Core studio
- Real-time camera feed with 60:30:10 color palette bars, legend swatches, and a throttled score that defaults to “per second” updates (
scoreUpdateMode). - Custom threshold controls for saturation, neutral inclusion, K=3 clustering, and scoring adjustments backed by EMA smoothing plus sticky bar rendering.
- Golden-ratio HUD (grid + spiral) with saliency-based marker, phi score, and the ability to toggle the entire HUD or change the spiral fit/corner.
- Full reference overlay: upload or capture a frame, adjust blend/wipe/scale/offset/flip/grid, and save/share a composited capture.
- Camera / device helpers that remember the last-used camera, prioritize the rear lens on mobile, and keep the device list refreshed when hardware changes.
- Palette chips that list the top 3 generated colors plus RGB/OKLCH values and a “Copy palette” button for sharing/exporting swatches.
- Dynamic theming derived from the hero image or stored preferences, plus persistent UI mode, slider states, and saturation cutoff.
- Soft paywall/trial helpers (currently disabled) with trial countdown, restore/purchase buttons, and localStorage billing keys.
“Pro” mode extras
- Pro/advanced controls in the sidebar (ghost/wipe reference uploads, scale/offset/alpha/grid/wipe sliders, phi HUD switches, guide list, and advanced golden-spiral/phi-fit toggles).
- Palette export, composition guide list, and “Phi HUD” badges only shown while
bodyhas.proclass (managed by the simple/pro toggle). - All advanced controls are hidden in simple mode through
setupUIMode()but are still available by flipping topro.
Composition guides
composition-guides.jsexposes dozens of guides (thirds, phi, golden spirals, diagonals, dynamic symmetry, perspective grids, safe zones, ratio masks) viaCompositionGuides.draw(ctx, rect, key, options).- The rewrite adds pixel-snapped lines, contrast-enhancing shadows, and flip-aware rendering so the overlays stay legible against bright/dark backgrounds.
Getting started
- Requires HTTPS or localhost.
- Open the page, allow camera access, and click “Open Studio” (or tap “Start Camera”) to begin streaming.
- Use the sidebar to pick camera sources, adjust saturation cutoffs, and switch between simple/pro UI modes.
- Toggle guides and reference capture/ghost overlays while watching the live bars and score.
- Use the “palette chips” panel to copy the dominant HEX/RGB/OKLCH data for sharing or texture matching.
Project structure
index.html: landing page, studio layout, camera buttons, readout bar, and Pro control sections.styles.css: comprehensive design system (tokens, responsive grid, readout layout, palette chips, stage controls, pro-only visibility).app.js: glue logic for UI state, device enumeration, frame analysis, k-means clustering, pallette export, golden HUD, composition guide wiring, paywall helpers, and capture sharing.composition-guides.js: modular drawing functions for every guide, now rendering with crisp snap offsets, shadows, and flip-aware options.manifest.webmanifest+sw.js: installable PWA shell with offline caching of assets.
Notes
- Donation mechanism: you can link to a reputable donation channel from the link in the header (https://buymeacoffee.com/freeambulanceride) when ready; pro-only controls simply require switching the UI mode (no gate is enforced yet).
- Tests: manual testing via the camera feed is the reliable path—run it in Chrome/Firefox, check the overlays, and use the palette copy export to verify clipboard support.
- Few GUI/UX bugs via CSS, privacy is not jeopardized.
License
See LICENSE for licensing details.
On this page
Languages
JavaScript48.9%CSS29.9%HTML21.2%
Contributors
GNU Affero General Public License v3.0
Created August 16, 2025
Updated February 21, 2026