package colorfulimport ()// Uses the HSV color space to generate colors with similar S,V but distributed// evenly along their Hue. This is fast but not always pretty.// If you've got time to spare, use Lab (the non-fast below).func ( int) ( []Color) { = make([]Color, )for := 0; < ; ++ { [] = Hsv(float64()*(360.0/float64()), 0.8+rand.Float64()*0.2, 0.65+rand.Float64()*0.2) }return}func ( int) ([]Color, error) { := func(, , float64) bool { , , := LabToHcl(, , )return0.3 <= && 0.4 <= && <= 0.8 }returnSoftPaletteEx(, SoftPaletteSettings{, 50, true})}
The pages are generated with Goldsv0.8.2. (GOOS=linux GOARCH=amd64)
Golds is a Go 101 project developed by Tapir Liu.
PR and bug reports are welcome and can be submitted to the issue list.
Please follow @zigo_101 (reachable from the left QR code) to get the latest news of Golds.