Documentation ¶
Overview ¶
Package colors provides types and functions for color classification.
Copyright (c) 2018 - 2024 PhotoPrism UG. All rights reserved.
This program is free software: you can redistribute it and/or modify it under Version 3 of the GNU Affero General Public License (the "AGPL"): <https://docs.photoprism.app/license/agpl> This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details. The AGPL is supplemented by our Trademark and Brand Guidelines, which describe how our Brand Assets may be used: <https://www.photoprism.app/trademark>
Feel free to send an email to hello@photoprism.app if you have questions, want to support our work, or just want to say hello.
Additional information can be found in our Developer Guide: <https://docs.photoprism.app/developer-guide/>
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var All = Colors{ Purple, Magenta, Pink, Red, Orange, Gold, Yellow, Lime, Green, Teal, Cyan, Blue, Brown, White, Grey, Black, }
View Source
var ColorExamples = map[Color]string{
Black: "#212121",
Grey: "#9E9E9E",
Brown: "#A1887F",
Gold: "#D4AF37",
White: "#F5F5F5",
Purple: "#AB47BC",
Blue: "#2196F3",
Cyan: "#00BCD4",
Teal: "#009688",
Green: "#66BB6A",
Lime: "#CDDC39",
Yellow: "#FDD835",
Magenta: "#FF00FF",
Orange: "#FFA726",
Red: "#EF5350",
Pink: "#EC407A",
}
View Source
var ColorMap = map[color.RGBA]Color{}/* 269 elements not displayed */
Functions ¶
Types ¶
type Chroma ¶
type Chroma int16
Chroma represents colorfulness.
type Color ¶
type Color int16
type ColorPerception ¶
ColorPerception provides information on how an image looks in terms of color and light.
Click to show internal directories.
Click to hide internal directories.