package colorful
func ( int, RandInterface) ( []Color) {
= make([]Color, )
for := 0; < ; ++ {
[] = Hsv(float64()*(360.0/float64()), 0.55+.Float64()*0.2, 0.35+.Float64()*0.2)
}
return
}
func ( int) ( []Color) {
return FastWarmPaletteWithRand(, getDefaultGlobalRand())
}
func ( int, RandInterface) ([]Color, error) {
:= func(, , float64) bool {
, , := LabToHcl(, , )
return 0.1 <= && <= 0.4 && 0.2 <= && <= 0.5
}
return SoftPaletteExWithRand(, SoftPaletteSettings{, 50, true}, )
}
func ( int) ([]Color, error) {
return WarmPaletteWithRand(, getDefaultGlobalRand())
}