prism

A glass prism with flat faces and crisp edges, from a triangle to an octagon.

Options

AttributeTypeDefaultRangeDescription
sidesfloat63 to 8Sides
heightfloat0.80.3 to 1.2Height
colorcolor#9bd1ffany CSS color, including color(display-p3 r g b)Accent color of the object.
sizelength160pxany CSS lengthWidth and height of the object box.
animationlistnoneidle, spin, pulse, breathe, floatSpace separated animations, composed in order.
speednumber10.1 to 3Multiplies animation time.
statekeywordidleoff, idle, busy, activeBrightness level, eased on change.
effectlistnoneglow, beam, rgb-split, pixelate, dither, scanlines, halftone, outline, grain, vignette, chroma, ripple, defocusSpace separated post effects on this object only.
shadingkeywordautoauto, glass, matte, cel, clay, metalHow the surface takes light. auto is glass in the dark theme and matte in the light one; a scene's shading is the default for its children.
gravitykeywordorbitcenter, orbit, fall, noneRole in a gravity scene.

Notes

A glass prism: a flat polygon pulled up into a column, tipped toward you so the top face shows. Three sides make a classic triangular prism, six a hexagonal nut, and a low height turns it into a tile.

<sd-scene>
  <sd-prism color="color(display-p3 0.55 0.85 1)" sides="3" animation="idle"></sd-prism>
</sd-scene>

License

MIT. Use it anywhere, credit appreciated.