Documentation
¶
Index ¶
- Variables
- func BGRASize(r *image.Rectangle) int
- func BorderRectangle(img draw.Image, r *image.Rectangle, c color.Color, size int)
- func ColorUint16s(c color.Color) (uint16, uint16, uint16, uint16)
- func DrawCopy(dst draw.Image, src image.Image, r *image.Rectangle)
- 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 IntRGBA(u int) 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 PaintShadow(img draw.Image, r image.Rectangle, height int, maxColorDiff float64)
- func Shade(c color.Color, v float64) color.Color
- func SprintRGB(c color.Color) string
- func Tint(c color.Color, v float64) color.Color
- func TintOrShade(c color.Color, v float64) color.Color
- func ToBGRAColor(c color.Color) color.RGBA
- func Valorize(c color.Color, v float64, auto bool) color.Color
- type BGRA
- func (img *BGRA) At(x, y int) color.Color
- func (img *BGRA) ColorModel() color.Model
- func (img *BGRA) RGBAImageWithCorrectedColor(c color.Color) (*image.RGBA, color.Color)
- func (img *BGRA) Set(x, y int, c color.Color)
- func (img *BGRA) SetRGBA(x, y int, c color.RGBA)
- func (img *BGRA) SubImage(r image.Rectangle) draw.Image
- 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 PaintShadow ¶
maxColorDiff in [0.0, 1.0]
Types ¶
type BGRA ¶
func (*BGRA) ColorModel ¶
func (*BGRA) RGBAImageWithCorrectedColor ¶
Allows using rgba image for other functions that rely on detection to use faster draw lanes (ex: draw.Draw)
Click to show internal directories.
Click to hide internal directories.