knot

A glassy torus knot: one tube that winds around a ring and through itself.

Options

AttributeTypeDefaultRangeDescription
twistfloat31 to 5Twists (lobes seen from the front)
thicknessfloat0.090.04 to 0.15Tube thickness
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 tube that runs twice around a ring and winds through itself on the way. With three twists it is a trefoil, the simplest true knot. It rewards a slow spin: the crossings slide over each other.

<sd-scene>
  <sd-knot color="color(display-p3 0.78 0.66 1)" animation="spin" speed="0.4"></sd-knot>
</sd-scene>

License

MIT. Use it anywhere, credit appreciated.