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.
ImagePainter operates on a generic Image (not only sdl.Surfaces) and allows to rasterize a path using a specific color.
NewImagePainter builds a Painter for a generic Image
Paint a batch of Spans using the current ImagePainter image and color. Image's Color model will be used to convert the color.
SetColor set the color to use when rasterizing