Documentation ¶
Index ¶
- func Circle(resolution int, radius float64, center image.Point) []image.Point
- type Image
- func (this Image[T]) Bounds() image.Rectangle
- func (this Image[T]) FillPolygon(fill []T, points ...image.Point)
- func (this Image[T]) FillRectangle(fill []T, rectangle image.Rectangle)
- func (this Image[T]) Line(stroke []T, weight int, min image.Point, max image.Point)
- func (this Image[T]) PixOffset(x, y int) int
- func (this Image[T]) PolyLine(stroke []T, weight int, points ...image.Point)
- func (this Image[T]) StrokePolygon(stroke []T, weight int, points ...image.Point)
- func (this Image[T]) StrokeRectangle(stroke []T, weight int, rectangle image.Rectangle)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Image ¶
type Image[T any] struct { // Pix is the actual pixel array of the image. Pix []T // Stride represents the distance in slice elements between two pixels // that are vertically adjacent. Stride int // Width specifies how many slice elements make up a single pixel. Width int // Rect specifies a rectangle that all drawing operations will be // clipped to. It must not reside outside of Data. It is measured in // pixels and not slice elements. Rect image.Rectangle }
func (Image[T]) FillPolygon ¶
func (Image[T]) FillRectangle ¶
func (Image[T]) StrokePolygon ¶
Click to show internal directories.
Click to hide internal directories.