Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var FallbackColor color.ARGB = 0xff4285f4
Google Blue
Functions ¶
func DifferenceDegrees ¶
DifferenceDegrees returns the shortest angular difference between two angles in degrees.
func SanitizeDegreesInt ¶
SanitizeDegreesInt ensures a degree measure is within the range [0, 360).
Types ¶
type ScoreOptions ¶
ScoreOptions provides configuration for ranking colors based on usage counts.
Desired: is the max count of the colors returned. FallbackColorARGB: Is the default color that should be used if no other colors are suitable.
Filter: controls if the resulting colors should be filtered to not include hues that are not used often enough, and colors that are effectively grayscale.
Click to show internal directories.
Click to hide internal directories.