Interactive camera family: webcam motion pushes physical balls on screen
New 'Interattivo Palle' family (interactive.js): frame-differencing motion map from the webcam, ball physics (push-away forces, collisions, beat kicks), palette-tinted rendering with motion mist. Camera is requested lazily and released when switching preset; mouse/touch fallback when unavailable. Excluded from Auto VJ so the camera never turns on by itself. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
1 parent
f2121c0fc5
commit
ea31d68350
7 files changed
+429
-4
No files matched your search
Vendored
+7
-2
@@ -53,7 +53,11 @@ const FAMILIES = [
|
||||
{ name: 'Griglia Neon', scale: 1.0 },
|
||||
{ name: 'Tunnel Neon', scale: 1.0 },
|
||||
{ name: 'Tempesta Plasma', scale: 1.0 },
|
||||
{ name: 'Supernova', scale: 1.0 }
|
||||
{ name: 'Supernova', scale: 1.0 },
|
||||
// Camera-interactive family (interactive.js): webcam motion pushes physical
|
||||
// balls around the screen. Excluded from Auto VJ (turning the camera on must
|
||||
// stay a deliberate user choice).
|
||||
{ name: 'Interattivo Palle', scale: 1.0, interactive: true }
|
||||
];
|
||||
|
||||
// Palettes: low colour (a) -> high colour (b), plus optional hue-cycle/sat.
|
||||
@@ -112,7 +116,8 @@ function makeEffect(fi, pi, vi) {
|
||||
// Always present (0/1 and a mode string) so Object.assign merges in
|
||||
// setEffect can't leave a stale flag behind when switching presets.
|
||||
isFluid: fam.fluid ? 1 : 0,
|
||||
fluidMode: fam.fluidMode || 'ink'
|
||||
fluidMode: fam.fluidMode || 'ink',
|
||||
isInteractive: fam.interactive ? 1 : 0
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user