Documentation
¶
Index ¶
- Variables
- func Copy(src, dataDir string) (string, error)
- func DecodeBase64(str, dataDir string) (string, error)
- func Download(url, dataDir string) (string, error)
- func GenPng(wf *aw.Workflow, path string, colors ...color.Color)
- func GenPng2(wf *aw.Workflow, path string, colors []color.Color, m map[color.Color]string, ...)
- func GenerateASE(wf *aw.Workflow, path string, hexs []string)
- func Hex(wf *aw.Workflow, col color.Color) string
- func Luminance(col color.Color) float64
- func RemoveAllPng(dir string)
- type ClipBoard
- type ClipBoardRepository
- type Handler
- type HexColor
- type HexColors
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ReUrl = regexp.MustCompile(`^(http:\/\/www\.|https:\/\/www\.|http:\/\/|https:\/\/)?[a-z0-9]+([\-\.]{1}[a-z0-9]+)*\.[a-z]{2,5}(:[0-9]{1,5})?(\/.*)?(?:jpg|jpeg|gif|png|tiff|tif|bmp|webp)$`) ReB64 = regexp.MustCompile(`(data:image\/[^;]+;base64,.*?)`) ReNumberOfColor = regexp.MustCompile(`(?m)( {0,}\+.{0,})$`) ClipBoardTiff = regexp.MustCompile(`(?m)[a-z0-9]{40}.tiff`) )
Functions ¶
func DecodeBase64 ¶
func Luminance ¶ added in v1.1.0
Luminance computes the luminance (~ brightness) of the given color. Range: 0.0 for black to 1.0 for white.
func RemoveAllPng ¶ added in v1.0.0
func RemoveAllPng(dir string)
Types ¶
type ClipBoard ¶ added in v1.1.0
type ClipBoardRepository ¶ added in v1.1.0
Click to show internal directories.
Click to hide internal directories.