Saturon LogoSaturon

🚧 This documentation covers a pre-1.0 release. Expect breaking changes.

Guides & Tutorials

Guides & Tutorials

Step-by-step tutorials and practical examples for mastering Saturon.

Explore our collection of guides to get the most out of Saturon. Each guide provides clear examples and practical tips for working with colors programmatically.

  • Creating Color Instances
    Learn how to create Color objects using Saturon's Color constructor, from(), and random() methods.

  • Working with Color Instances
    Discover how to manipulate and convert colors using in(), with(), and the to*() family of methods to gain full control over color transformations.

  • Color Mixing & Interpolation
    Master blending colors with the mix() method. Explore hue interpolation methods, easing functions, gamma correction, and alpha handling for precise results.

  • Accessibility & Color Difference Checks
    Ensure your colors are readable and accessible using contrast() and deltaE*() methods to check contrast and perceptible color differences.

  • Gamut Mapping & Out-of-Gamut Handling
    Learn to detect, constrain, and fit colors using within(), inGamut(), and fit options to handle colors that exceed display gamuts safely.