Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var GrayAlgorithms = &grayAlgoList{
Lightness: "lightness",
Average: "average",
Luminosity: "luminosity",
}
GrayAlgorithms consists of a list of algorithms that can be used as algorithm type in pixl.Gray struct. e.g. pixl.Gray{Algorithm: pixl.GrayAlgorithms.Lithtness}
View Source
var ThresholdAlgorithms = &thresholdAlgoList{
Static: "static",
Otsu: "otsu",
}
ThresholdAlgorithms consists of a list of algorithms that can be used as algorithm type in pixl.Threshold struct. for ex: pixl.Threshold{Algorithm: pixl.ThresholdAlgorithms.Static}
Functions ¶
This section is empty.
Types ¶
type Halftone ¶
type Halftone struct { TransparentBackground bool ColorBackground string ColorFront string Shift int8 /* -100(%) to 100(%) */ ElementsHorizontaly uint16 OffsetSize int8 /* -50(%) to 50(%) */ MaxBoxSize uint8 Normalize bool }
Halftone is a config struct Configuration contains:
TransparentBackground - if true then background of png image will be transparent ColorBackground - background color in hex format (e.g. #b690d9) ColorBackground - frontend color in hex format (e.g. #b690d9) Shift - shift between adjacent rows ElementsHorizontaly - amount of elements in the x axis OffsetSize - increases or decreases output pattern size MaxBoxSize - maximum size of output pattern Normalize - if true then image will be normalized before conversion to halftone
Click to show internal directories.
Click to hide internal directories.