Bevel offset

ior

A block of clear glass clamped on a bench with its profile facing you, and a comb that shows how far out each bevel pixel reads.

Drawn while the skill was being made, for a long article on rendering frosted panes in WebGL.

Install

npm install anatomy-figures

In your code

page.tsx
import { BevelOffset } from "anatomy-figures";

<BevelOffset theme="light" />

Or load this figure on its own, so the others never download:

page.tsx
import BevelOffset from "anatomy-figures/bevel-offset";

Theme it

Early examples keep their own light and dark palettes: theme picks one, and --anatomy-card sets the ground.

page.tsx
<BevelOffset
  theme="dark"
  tokens={{ "--anatomy-card": "#000000" }}
/>

Without React

It still draws with React inside, so install react and react-dom next to it.

index.html
import { define } from "anatomy-figures/element/bevel-offset";

define();

<anatomy-bevel-offset theme="light"></anatomy-bevel-offset>
The Creation of Adam, Michelangelo, c. 1512