mirror of
https://github.com/All-Of-Us-Mods/MiraAPI.git
synced 2026-10-19 15:51:48 +00:00
25 lines
767 B
C#
25 lines
767 B
C#
using MiraAPI.Colors;
|
|
using MiraAPI.Colors.ColorSpaces;
|
|
using MiraAPI.Utilities;
|
|
using UnityEngine;
|
|
|
|
namespace MiraAPI.Example;
|
|
|
|
[RegisterCustomColors]
|
|
public static class ExampleColors
|
|
{
|
|
public static CustomColor Cerulean { get; } = new("color.cerulean", new Color(0.0f, 0.48f, 0.65f))
|
|
{
|
|
ColorBrightness = CustomColorBrightness.Lighter,
|
|
};
|
|
|
|
public static CustomColor Rose { get; } = new("color.rose", new Color(0.98f, 0.26f, 0.62f));
|
|
|
|
public static CustomColor Gold { get; } = new("color.gold", new Color(1.0f, 0.84f, 0.0f));
|
|
|
|
public static VariableColor Rainbow { get; } = new("color.rainbow", t => new HsbColor(MathUtilities.PingPong(t, 1f, 0.3f), 1f, 1f))
|
|
{
|
|
ColorBrightness = CustomColorBrightness.Lighter,
|
|
};
|
|
}
|