Involved Source Files Package csscolorparser provides function for parsing CSS color string as defined in the W3C's CSS color module level 4.named_colors.go
R, G, B, A values in the range 0..1Afloat64Bfloat64Gfloat64Rfloat64( Color) Clamp() Color HexString returns CSS hexadecimal string. Implement the Go TextMarshaler interface Name returns name of this color if its available. Implement the Go color.Color interface. RGBA255 returns R, G, B, A values in the range 0..255 RGBString returns CSS RGB string. Implement the Go TextUnmarshaler interface
Color : encoding.TextMarshaler
*Color : encoding.TextUnmarshaler
Color : image/color.Color
func FromHsl(h, s, l, a float64) Color
func FromHsv(h, s, v, a float64) Color
func FromHwb(h, w, b, a float64) Color
func FromLinearRGB(r, g, b, a float64) Color
func FromOklab(l, a, b, alpha float64) Color
func FromOklch(l, c, h, alpha float64) Color
func Parse(s string) (Color, error)
func Color.Clamp() Color
Parse parses CSS color string and returns, if successful, a Color.
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.