SOURCE / PINNED RELEASE
Made of little things.
Drone Zone — deep field
- Release
- 578f277a8be1…
- Author-recorded commit
- a96742b428de…
- License
- LICENSE
- Author’s source reference
- nostr://npub1n8ga89w8h6tvwamxusfyzexw8gjy84yxu9rxgnmk955cxtml4ujswzxydd/wss%3A%2F%2Fgit.napplet.soy%2F/n-9753e6cf3ec
Archive hash verified: f7f3bf8ff3482551…. The source-to-build association is the author’s claim; it has not been independently rebuilt.
import { config, type Subscription } from '@napplet/sdk';
import { runtimeHasDomain } from './domain-availability.js';
import type { FieldSettings } from './scene.js';
export type AppearanceSettings=FieldSettings & {vhs:number};
export function subscribeSettings(apply:(settings:AppearanceSettings)=>void):Subscription|null {
if(!runtimeHasDomain('config'))return null;
try{return config.subscribe(values=>apply({motion:typeof values.motion==='number'?Math.max(0,Math.min(1,values.motion)):.6,stars:typeof values.stars==='number'?Math.max(.2,Math.min(1,values.stars)):1,fog:values.fog!==false,distortion:values.distortion!==false,vhs:typeof values.vhs==='number'&&Number.isFinite(values.vhs)?Math.max(0,Math.min(1,values.vhs)):.45}));}catch{return null;}
}