csscolor

package module
v0.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 23, 2021 License: MIT Imports: 4 Imported by: 1

README

csscolor

Simple parsing method for css colors.

Supports:

  • #fff
  • #ffffff
  • #ffffffff
  • black, white, etc
  • rgb(255, 255, 255)
  • rgba(255, 255, 255, 0.8)
  • hsl(0, 100%, 30%)
  • hsla(0, 100%, 50%, 0.3)

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrInvalidColor = errors.New("Invalid color")

Functions

func Parse

func Parse(col string) (color.Color, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL