Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DrawPoint ¶
func DrawPoint(context DrawingContext, pixel base.PixelMember)
DrawPoint draws a single point on to the image.
Types ¶
type CachePalette ¶
type CachePalette struct {
// contains filtered or unexported fields
}
func NewCachePalette ¶
func NewCachePalette(iterateLimit uint8, member color.NRGBA, cacher Cacher) CachePalette
func (CachePalette) Color ¶
func (palette CachePalette) Color(member base.EscapeValue) color.NRGBA
CachePalette implements Palette
type ContextProvider ¶
type ContextProvider interface {
DrawingContext() DrawingContext
}
type DrawingContext ¶
type GrayscalePalette ¶
type GrayscalePalette struct {
CachePalette
}
type MockContextProvider ¶
type MockContextProvider struct { TDrawingContext bool Context DrawingContext }
func (*MockContextProvider) DrawingContext ¶
func (mock *MockContextProvider) DrawingContext() DrawingContext
type MockDrawingContext ¶
func NewMockDrawingContext ¶
func NewMockDrawingContext(iterateLimit uint8) *MockDrawingContext
func (*MockDrawingContext) Colors ¶
func (mock *MockDrawingContext) Colors() Palette
func (*MockDrawingContext) Picture ¶
func (mock *MockDrawingContext) Picture() *image.NRGBA
type MockPalette ¶
func (*MockPalette) Color ¶
func (mock *MockPalette) Color(point base.EscapeValue) color.NRGBA
type Palette ¶
type Palette interface {
Color(point base.EscapeValue) color.NRGBA
}
func NewGrayscalePalette ¶
func NewPrettyPalette ¶
func NewRedscalePalette ¶
type PaletteFactory ¶
type PrettyPalette ¶
type PrettyPalette struct {
CachePalette
}
type RedscalePalette ¶
type RedscalePalette struct {
CachePalette
}
Click to show internal directories.
Click to hide internal directories.