Rotary mechanisms
Distance drag, absolute angle, markers, materials, and keyboard control.
The actuator frame rotates; the base, scale ring, and light direction stay in the scene.
Physics-based lighting / live DOM
Download Back To CSSScript.Com
A shared light vector shapes shadows, highlights, surfaces, edges, materials, and tactile controls in real time.
Drag the dial or use the controls below. The same lighting variables reach every sample on this page.
01 / Light model
Move the source, raise the key, soften it with fill, or shift the lamp's cast. The preview updates without a page refresh.
Choose a direction to apply the matching .amb-light-* position to the live scene.
02 / Surface language
Surface curvature, edge cuts, physical height, and material response are separate layers. Combine them on the same element.
Each finish keeps the scene's light direction while changing how the surface reflects, diffuses, or breaks it.
Set a material's reflectance with --amb-albedo, then tune its tone with --amb-shade.
The same surface can be chamfered, filleted, recessed, raised, or left paper-thin.
03 / Tactile controls
The controls share one state channel, so a part can paint itself from value, angle, travel, and pressed state.
Distance drag, absolute angle, markers, materials, and keyboard control.
The actuator frame rotates; the base, scale ring, and light direction stay in the scene.
One straight motion model powers both a horizontal slider and an upright fader.
Click or drag along either track. Arrow keys change the same value with the control's orientation preserved.
Momentary, toggle, and repeat modes use the same tactile key surface.
Hold the round key to repeat. The square key stays pressed until it is clicked again.
A two-position actuator with a real switch role, optional LED, and scene-aware paint.
The lamp and the actuator read the same boolean. The control stays keyboard reachable as a switch.
Shared selection, per-key state, glass diffuser caps, and a second radio-style skin.
Use the arrow keys or click a key. Each option owns its own data-on state and indicator color channel.
The mechanism stays the same while a kit swaps the parts around it.
The console kit uses a bar pointer, a circular housing, and a track that reads --ambx-percent directly.