Documentation
¶
Overview ¶
Package raster provides 2D raster drawing primitives.
Index ¶
- func BlendPixel(img *image.RGBA, x, y int, c color.RGBA)
- func Dot(img *image.RGBA, cx, cy, r int, c color.RGBA)
- func FillQuad(img *image.RGBA, q [4]Vec2, c color.RGBA)
- func Label(img *image.RGBA, cx, cy int, text string, c color.RGBA)
- func Line(img *image.RGBA, x0, y0, x1, y1 int, c color.RGBA)
- func LineAA(img *image.RGBA, x0, y0, x1, y1 float64, c color.RGBA)
- func PointInQuad(px, py float64, q [4]Vec2) bool
- func QuadOutline(img *image.RGBA, q [4]Vec2, c color.RGBA)
- type Vec2
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BlendPixel ¶
BlendPixel alpha-blends a color onto an existing pixel.
func PointInQuad ¶
PointInQuad checks if point (px, py) is inside a quadrilateral.
Types ¶
Click to show internal directories.
Click to hide internal directories.