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 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 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 RgbaColor(c color.Color) color.RGBA
- func RgbaFromInt(u int) color.RGBA
- 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 Valorize(c color.Color, v float64, auto bool) color.Color
- type BGRA
- 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]
func RgbaFromInt ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.