canvas

package module
v0.0.0-...-f588a33 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 8, 2016 License: MIT Imports: 1 Imported by: 1

README

go-js-canvas

GopherJS bindings for <canvas>

Deprecated

Use the GohperJS DOM package instead:

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Canvas

type Canvas struct {
	Element *js.Object

	Width  int
	Height int
	// contains filtered or unexported fields
}

func New

func New(el *js.Object) *Canvas

func (*Canvas) ClearRect

func (c *Canvas) ClearRect(x, y, w, h int)

func (*Canvas) FillRect

func (c *Canvas) FillRect(x, y, w, h int)

func (*Canvas) SetFillStyle

func (c *Canvas) SetFillStyle(fillStyle string)

func (*Canvas) SetStrokeStyle

func (c *Canvas) SetStrokeStyle(strokeStyle string)

func (*Canvas) StrokeRect

func (c *Canvas) StrokeRect(x, y, w, h int)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL