type RepeatOp …
const RepeatBoth …
const RepeatX …
const RepeatY …
const RepeatNone …
type Pattern …
type solidPattern …
func (p *solidPattern) ColorAt(x, y int) color.Color { … }
func NewSolidPattern(color color.Color) Pattern { … }
type surfacePattern …
func (p *surfacePattern) ColorAt(x, y int) color.Color { … }
func NewSurfacePattern(im image.Image, op RepeatOp) Pattern { … }
type patternPainter …
func (r *patternPainter) Paint(ss []raster.Span, done bool) { … }
func newPatternPainter(im *image.RGBA, mask *image.Alpha, p Pattern) *patternPainter { … }