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.
Click to show internal directories.
Click to hide internal directories.