Elin Decompiled Documentation EA 23.102 Nightly
Loading...
Searching...
No Matches
Extensions.cs
Go to the documentation of this file.
1using UnityEngine;
2
3namespace Empyrean.Utils;
4
5public static class Extensions
6{
7 public static Color ToRGB(this HSVColor hsv)
8 {
9 return Colorist.HSVtoRGB(hsv);
10 }
11
12 public static HSVColor ToHsv(this Color rgb)
13 {
14 return Colorist.RGBtoHSV(rgb);
15 }
16
17 public static float h(this Color color)
18 {
19 return color.ToHsv().h;
20 }
21
22 public static float s(this Color color)
23 {
24 return color.ToHsv().s;
25 }
26
27 public static float v(this Color color)
28 {
29 return color.ToHsv().v;
30 }
31}
static Color HSVtoRGB(HSVColor hsv)
Definition: Colorist.cs:107
static HSVColor RGBtoHSV(Color color)
Definition: Colorist.cs:130
static float h(this Color color)
Definition: Extensions.cs:17
static HSVColor ToHsv(this Color rgb)
Definition: Extensions.cs:12
static Color ToRGB(this HSVColor hsv)
Definition: Extensions.cs:7
static float s(this Color color)
Definition: Extensions.cs:22
static float v(this Color color)
Definition: Extensions.cs:27