rename variables

This commit is contained in:
Ryan Cavicchioni 2020-03-22 14:41:54 -05:00
parent adc8b72e0e
commit fe40294f52
Signed by: ryanc
GPG Key ID: 877EEDAF9245103D

View File

@ -30,21 +30,21 @@ type (
) )
const ( const (
WhiteCandlelight = 1500 KelvinCandlelight = 1500
WhiteSunset = 2000 KelvinSunset = 2000
WhiteUltraWarm = 2500 KelvinUltraWarm = 2500
WhiteIncandescent = 2700 KelvinIncandescent = 2700
WhiteWarm = 3000 KelvinWarm = 3000
WhiteCool = 4000 KelvinCool = 4000
WhiteCoolDaylight = 4500 KelvinCoolDaylight = 4500
WhiteSoftDaylight = 5000 KelvinSoftDaylight = 5000
WhiteDaylight = 5600 KelvinDaylight = 5600
WhiteNoonDaylight = 6000 KelvinNoonDaylight = 6000
WhiteBrightDaylight = 6500 KelvinBrightDaylight = 6500
WhiteCloudDaylight = 7000 KelvinCloudDaylight = 7000
WhiteBlueDaylight = 7500 KelvinBlueDaylight = 7500
WhiteBlueOvercast = 8000 KelvinBlueOvercast = 8000
WhiteBlueIce = 9000 KelvinBlueIce = 9000
HueWhite = 0 HueWhite = 0
HueRed = 0 HueRed = 0
@ -59,21 +59,21 @@ const (
var ( var (
DefaultWhites = map[string]int{ DefaultWhites = map[string]int{
"candlelight": WhiteCandlelight, "candlelight": KelvinCandlelight,
"sunset": WhiteSunset, "sunset": KelvinSunset,
"ultrawarm": WhiteUltraWarm, "ultrawarm": KelvinUltraWarm,
"incandesent": WhiteIncandescent, "incandesent": KelvinIncandescent,
"warm": WhiteWarm, "warm": KelvinWarm,
"cool": WhiteCool, "cool": KelvinCool,
"cooldaylight": WhiteCoolDaylight, "cooldaylight": KelvinCoolDaylight,
"softdaylight": WhiteSoftDaylight, "softdaylight": KelvinSoftDaylight,
"daylight": WhiteDaylight, "daylight": KelvinDaylight,
"noondaylight": WhiteNoonDaylight, "noondaylight": KelvinNoonDaylight,
"brightdaylight": WhiteBrightDaylight, "brightdaylight": KelvinBrightDaylight,
"clouddaylight": WhiteCloudDaylight, "clouddaylight": KelvinCloudDaylight,
"bluedaylight": WhiteBlueDaylight, "bluedaylight": KelvinBlueDaylight,
"blueovercast": WhiteBlueOvercast, "blueovercast": KelvinBlueOvercast,
"blueice": WhiteBlueIce, "blueice": KelvinBlueIce,
} }
) )
@ -137,7 +137,7 @@ func NewWhite(k int16) (HSBKColor, error) {
} }
c = HSBKColor{ c = HSBKColor{
H: Float32Ptr(0.0), H: Float32Ptr(HueWhite),
S: Float32Ptr(0.0), S: Float32Ptr(0.0),
K: Int16Ptr(k), K: Int16Ptr(k),
} }