HexFromState() public static method

Returns hexvalue from Light State
public static HexFromState ( State state ) : string
state State
return string
Beispiel #1
0
 public static string ToHex(this Light light)
 {
     return(HueColorConverter.HexFromState(light.State, light.ModelId));
 }
 public static string ToHex(this State state, string model = "LCT001")
 {
     return(HueColorConverter.HexFromState(state, model));
 }