Elements as rainbow colors

    0

    0

    Jason Storey

    This code creates a blue color with a hue of (i % (float)_interval) / (float)(_interval-1), where _interval is the interval between blue colors.

    _interval = 100f;
    Color.blue.WithHue((i % (float)_interval) / (float)(_interval-1));
    Codiga Logo
    Codiga Hub
    • Rulesets
    • Playground
    • Snippets
    • Cookbooks
    soc-2 icon

    We are SOC-2 Compliance Certified

    G2 high performer medal

    Codiga – All rights reserved 2022.