Skip to the content
FilCommunityWorkflowsSkillsDocsOpen Fil
Keycap: one mechanical keyboard key built in Three.js, centred on the screen like a premium hardware control. Nothing else…
A web page: run it in Fil

Code · Claude Opus 5.5

Keycap: one mechanical keyboard key built in Three.js

Keycap: one mechanical keyboard key built in Three.js, centred on the screen like a premium hardware control. Nothing else on the page. It belongs to the same set as a brushed aluminium volume knob: same graphite background, same light, same single amber accent. The object: one sculpted keycap, a little larger than life, sitting in a small square cut-out of a brushed aluminium switch plate with softly rounded edges. The keycap is graphite PBT plastic: matte with a fine grainy texture, slightly rounded edges and corners that catch a thin highlight, a gentle concave dish on top, tapered sides. Its legend is printed in a clean light grey sans in the top left of the dish, starting as the letter F. Under the key, a warm amber LED glow leaks softly out around its base onto the plate. A soft contact shadow grounds the plate on the dark ground. Material and light: follow the wired skills. The plate is true conductor aluminium with a straight brushed finish (anisotropy along one direction) and varied roughness. The keycap is a dielectric plastic, not metal, with its own roughness variation. Light everything with a dark room of a few bright window cards through PMREM, with a neutral grey floor card (never a warm one, it tints metal brown), so reflections have shape. Tone map last with ACES. Render sharp at a pixel ratio up to 2. Interaction: click or tap the key, or press any letter or number on the keyboard. The key travels down about 4 mm with a crisp, quick spring, holds down while the key or pointer is held, and springs back up on release with a tiny overshoot. Each press changes the legend to the character typed (a click keeps the current one) and the amber underglow brightens for a moment, then settles. On hover the key lifts a hair. Under the plate, a small letter-spaced label in a clean sans: PRESS ANY KEY. Must work well: if the page starts with no size (a hidden tab or an iframe not laid out yet), use a 1 by 1 aspect and never let the camera become NaN, and recover on resize. Compute tangents for any anisotropic surface so the brushing never steps or shows a seam. Keyboard accessible (a button role with an aria label that names the current legend, visible focus ring only when focused from the keyboard, never after a click), prefers-reduced-motion (no spring, instant states), pauses when the tab is hidden, responsive from a phone to a wide desktop with the key always centred and fully visible.

Samnang Aing@samaing19830628

Model
Claude Opus 5.5
Made by
Samnang Aing
Shared
Likes
0
Open in Fil

Use its prompt, turn it into a video or a 3D model, or find more like it in Fil. Fil is invite-only for now: without an invitation, Open in Fil shows the waitlist.

More like this

Rotary knob: one brushed aluminium volume knob built in Three.js, centred on the screen like a premium hardware control…Rotary knob: one brushed aluminium volume knob built in Three.js, centred on the screen like a premium hardware control. Nothing else on…Generate button: one premium AI "Generate" button that walks through the states of a generation, as a single HTML file with…Generate button: one premium AI "Generate" button that walks through the states of a generation, as a single HTML file with plain CSS and…An editorial spot illustration of a long-limbed designer sitting cross-legged on a chair at a laptop, one hand resting on…An editorial spot illustration of a long-limbed designer sitting cross-legged on a chair at a laptop, one hand resting on their chin and…Editorial black-and-white halftone line illustration about designing, developing and making apps. A tall, rubbery…Editorial black-and-white halftone line illustration about designing, developing and making apps. A tall, rubbery long-limbed character in…An editorial spot illustration of a long-limbed designer sitting cross-legged on a chair at a laptop, one hand resting on…An editorial spot illustration of a long-limbed designer sitting cross-legged on a chair at a laptop, one hand resting on their chin and…Slide 2: point 1 from Slides.md, one of the skill’s middle slides, in the design of the wired Slide 1, without its swipe…Slide 2: point 1 from Slides.md, one of the skill’s middle slides, in the design of the wired Slide 1, without its swipe arrow. Reference…An editorial spot illustration of a long-limbed designer sitting cross-legged on a chair at a laptop, one hand resting on…An editorial spot illustration of a long-limbed designer sitting cross-legged on a chair at a laptop, one hand resting on their chin and…Slide 4: point 3 from Slides.md, one of the skill’s middle slides, in the design of the wired Slide 1, without its swipe…Slide 4: point 3 from Slides.md, one of the skill’s middle slides, in the design of the wired Slide 1, without its swipe arrow. Reference…Slide 1 from Slides.md, the skill's hook slide: [a single glass perfume bottle on a chrome plinth in a vast surreal desert…Slide 1 from Slides.md, the skill's hook slide: [a single glass perfume bottle on a chrome plinth in a vast surreal desert at golden hour…Slide 6: point 5 from Slides.md, one of the skill’s middle slides, in the design of the wired Slide 1, without its swipe…Slide 6: point 5 from Slides.md, one of the skill’s middle slides, in the design of the wired Slide 1, without its swipe arrow. Reference…An editorial spot illustration of a long-limbed designer sitting cross-legged on a chair at a laptop, one hand resting on…An editorial spot illustration of a long-limbed designer sitting cross-legged on a chair at a laptop, one hand resting on their chin and…Editorial black-and-white halftone line illustration about designing, developing and making apps. A tall, rubbery…Editorial black-and-white halftone line illustration about designing, developing and making apps. A tall, rubbery long-limbed character in…