cel

Flat bands of light with a hard highlight and an ink rim. The cartoon look.

Options

AttributeTypeDefaultRangeDescription
cel-lightnumber1200 to 360Light azimuth (degrees)
cel-bandsnumber32 to 5Light bands
cel-outlinenumber0.80 to 1Outline (0 removes it)

Notes

Cartoon shading. Light falls in flat bands instead of a gradient, the highlight is one hard dot, and a line of ink runs along the silhouette and the grazing edges. In the dark theme the ink is a bright tint of the color; in the light theme it is a dark one.

<sd-scene shading="cel" cel-bands="2">
  <sd-star color="color(display-p3 1 0.8 0.5)"></sd-star>
</sd-scene>

Put shading="cel" on a scene to shade every object in it, or on one object. Compare all shades on the Shades page.

License

MIT. Use it anywhere, credit appreciated.