Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Canvas ¶
type Canvas struct {
// contains filtered or unexported fields
}
Canvas struct holds the Javascript objects needed for the Canvas creation
func (*Canvas) Alert ¶
func (c *Canvas) Alert(args ...interface{})
Alert calls the `alert` Javascript function
func (*Canvas) Log ¶
func (c *Canvas) Log(args ...interface{})
Log calls the `console.log` Javascript function
func (*Canvas) Render ¶
Render calls the `requestAnimationFrame` Javascript function in asynchronous mode.
func (*Canvas) StartWebcam ¶
StartWebcam reads the webcam data and feeds it into the canvas element. It returns an empty struct in case of success and error in case of failure.
type Quant ¶
type Quant struct {
// contains filtered or unexported fields
}
A workspace with members that can be accessed by methods.
func NewQuantizer ¶
func NewQuantizer() *Quant
NewQuantizer is a constructor method which initializes a new Quantizer.
func (*Quant) Draw ¶
func (quant *Quant) Draw(src image.Image, numOfColors int, cellSize int, noiseLevel int) image.Image
Draw creates uniform cells with the quantified cell color of the source image.
func (*Quant) Paletted ¶
func (qz *Quant) Paletted() image.PalettedImage
Click to show internal directories.
Click to hide internal directories.