Documentation

website.components.ui.liquid-glass.optics

Pure lens profiles and distance fields. Dimensions are measured CSS-pixel coordinates at the browser boundary, never authored pixel styling.

clamp

(clamp low high value)

displacement

(displacement profile index thickness t)

ellipse-distance

(ellipse-distance width height x y)

field

(field {:keys [width height radius bezel thickness shape points profile index resolution max-pixels max-side light-angle light-focus]})

Generate bounded RG displacement and RGBA rim-light buffers. Mutation is confined to the native ImageData boundary; geometry/profile inputs are data.

finite?

(finite? value)

polygon-distance

(polygon-distance points x y)

profile-table

(profile-table profile index thickness)

raster-size

(raster-size width height resolution max-pixels max-side)

rounded-distance

(rounded-distance width height radius x y)

sample

(sample {:keys [values]} t)

surface-height

(surface-height profile t)