Documentation ¶
Overview ¶
Package pixel contains common pixel formats.
Index ¶
- func Circle(b Image, p image.Point, r int, c color.Color)
- func FadeOutDither(buffer *Bitmap, duration time.Duration) <-chan time.Time
- func Fill(b Image, c color.Color)
- func FillRectangle(b Image, r image.Rectangle, c color.Color)
- func HLine(b Image, p image.Point, width int, c color.Color)
- func Line(b Image, p0, p1 image.Point, c color.Color)
- func Rectangle(b Image, r image.Rectangle, c color.Color)
- func ScrollDown(b Image)
- func ScrollUp(b Image)
- func VLine(b Image, p image.Point, height int, c color.Color)
- type Bitmap
- type Format
- type Image
- type RGB332
- type RGB565
- type RGB888
- type RGBA4444
- type RGBA5551
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Circle ¶
Circle draws a circle at point p with radius r.
func FadeOutDither ¶
FadeOutDither applies gradual 4×4 Bayes dithering to all pixels off.
func FillRectangle ¶
FillRectangle draws a filled rectangle between the two points.
func HLine ¶
HLine draws a horizontal line at p with the given width.
func Line ¶
Line draws a line between two points.
func Rectangle ¶
Rectangle draws a rectangle outline between the two points.
Types ¶
type Image ¶
type RGB332 ¶
type RGB565 ¶
type RGB888 ¶
type RGBA4444 ¶
type RGBA5551 ¶
Directories ¶
Path | Synopsis |
---|---|
Package pixelcolor contains common color formats.
|
Package pixelcolor contains common color formats. |
Click to show internal directories.
Click to hide internal directories.