canvas

package module
v0.0.0-...-3064ff0 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2015 License: MIT Imports: 1 Imported by: 0

README

go-js-canvas

GopherJS bindings for <canvas>

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