Documentation ¶
Overview ¶
Package raster implements a Painter interface for rasterizing paths over a generic Image, using its ColorModel to convert from a generic raster color to the correct color model.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ImagePainter ¶
ImagePainter operates on a generic Image (not only sdl.Surfaces) and allows to rasterize a path using a specific color.
func NewImagePainter ¶
func NewImagePainter(m draw.Image) *ImagePainter
NewImagePainter builds a Painter for a generic Image
func (*ImagePainter) Paint ¶
func (p *ImagePainter) Paint(ss []raster.Span, done bool)
Paint a batch of Spans using the current ImagePainter image and color. Image's Color model will be used to convert the color.
func (*ImagePainter) SetColor ¶
func (p *ImagePainter) SetColor(c color.Color)
SetColor set the color to use when rasterizing
Click to show internal directories.
Click to hide internal directories.