some basic stuffs.
This commit is contained in:
@@ -180,6 +180,10 @@ func (col *Color) ToXY() (col2 Color, ok bool) {
|
||||
}
|
||||
|
||||
func (col *Color) Interpolate(other Color, fac float64) Color {
|
||||
if col.AlmostEquals(other) {
|
||||
return *col
|
||||
}
|
||||
|
||||
// Special case for kelvin values.
|
||||
if col.IsKelvin() && other.IsKelvin() {
|
||||
k1 := *col.K
|
||||
|
||||
Reference in New Issue
Block a user