Documentation ¶
Index ¶
- Variables
- func BGRASize(r *image.Rectangle) int
- func BgraColor(c color.Color) color.RGBA
- func BorderRectangle(img draw.Image, r image.Rectangle, c color.Color, size int)
- func ColorUint16s(c color.Color) (uint16, uint16, uint16, uint16)
- func Complement(c color.RGBA) color.RGBA
- func DrawCopy(dst draw.Image, r image.Rectangle, src image.Image)
- func DrawMask(dst draw.Image, r image.Rectangle, src image.Image, srcp image.Point, ...)
- func DrawUniform(dst draw.Image, r image.Rectangle, c color.Color, op draw.Op)
- func DrawUniformMask(dst draw.Image, r image.Rectangle, c color.Color, mask image.Image, ...)
- func FillRectangle(img draw.Image, r image.Rectangle, c color.Color)
- func Invert(c color.RGBA) color.RGBA
- func Invert2(c color.RGBA) color.RGBA
- func IsLighter(c color.Color) bool
- func MaxPoint(p1, p2 image.Point) image.Point
- func MinPoint(p1, p2 image.Point) image.Point
- func NewLinearInvertFn(v1, v2 float64) func(color.RGBA) color.RGBA
- func NewLinearInvertFn2(v1, v2 float64) func(color.Color) color.Color
- func PaintShadow(img draw.Image, r image.Rectangle, height int, maxColorDiff float64)
- func RgbaColor(c color.Color) color.RGBA
- func RgbaFromInt(u int) color.RGBA
- func RgbaToInt(c color.RGBA) int
- func Shade(c color.Color, v float64) color.Color
- func SprintRgb(c color.Color) string
- func SprintRgbaHex(c color.Color) string
- func Tint(c color.Color, v float64) color.Color
- func TintOrShade(c color.Color, v float64) color.Color
- func Valorize(c color.Color, v float64, auto bool) color.Color
- type BGRA
- type GammaTable
- type HSV
Constants ¶
This section is empty.
Variables ¶
View Source
var HSVModel color.Model = color.ModelFunc(convertToHSV)
Functions ¶
func BorderRectangle ¶
func ColorUint16s ¶
Ex. usage: editor.xutil.cursors
func DrawUniformMask ¶
func NewLinearInvertFn ¶ added in v1.3.7
NOTE: https://www.pyimagesearch.com/2015/10/05/opencv-gamma-correction/
func NewLinearInvertFn2 ¶ added in v1.3.7
func PaintShadow ¶
maxColorDiff in [0.0, 1.0]
func RgbaFromInt ¶ added in v1.3.0
func SprintRgbaHex ¶ added in v1.3.7
Types ¶
type GammaTable ¶ added in v1.3.7
type GammaTable struct {
Table [256]uint8
}
func NewGammaTable ¶ added in v1.3.7
func NewGammaTable(gamma float64) *GammaTable
Click to show internal directories.
Click to hide internal directories.