Versions in this module Expand all Collapse all v1 v1.0.1 Nov 8, 2017 Changes in this version + type BufferBasedCanvas interface + At func(x, y int) (color.Color, error) + Set func(x, y int, c color.Color) error + type ByteColorBuffer struct + func NewByteColorBuffer(width, height int, bgColor, fgColor color.ByteColor) (*ByteColorBuffer, error) + func (cnv *ByteColorBuffer) At(x, y int) (color.Color, error) + func (cnv *ByteColorBuffer) BucketFill(x, y int, c color.Color) error + func (cnv *ByteColorBuffer) Dimensions() (width, height int) + func (cnv *ByteColorBuffer) DrawLine(x1, y1, x2, y2 int) error + func (cnv *ByteColorBuffer) DrawRect(x1, y1, x2, y2 int) error + func (cnv *ByteColorBuffer) Pixels() []color.ByteColor + func (cnv *ByteColorBuffer) Set(x, y int, c color.Color) error + type Canvas interface + BucketFill func(x, y int, c color.Color) error + Dimensions func() (int, int) + DrawLine func(x1, y1, x2, y2 int) error + DrawRect func(x1, y1, x2, y2 int) error