goplayspace: github.com/iafan/goplayspace/client/js/canvas Index | Files

package canvas

import "github.com/iafan/goplayspace/client/js/canvas"

Index

Package Files

canvas.go ctx2d.go

type Canvas Uses

type Canvas struct {
    *js.Object
}

func (*Canvas) GetContext2D Uses

func (c *Canvas) GetContext2D() *CanvasRenderingContext2D

GetContext2D returns a '2d' context for the canvas

func (*Canvas) GetNodeSize Uses

func (c *Canvas) GetNodeSize() (w, h float64)

func (*Canvas) SetSize Uses

func (c *Canvas) SetSize(w, h float64)

type CanvasRenderingContext2D Uses

type CanvasRenderingContext2D struct {
    *js.Object
}

func (*CanvasRenderingContext2D) BeginPath Uses

func (ctx *CanvasRenderingContext2D) BeginPath()

func (*CanvasRenderingContext2D) ClearRect Uses

func (ctx *CanvasRenderingContext2D) ClearRect(x, y, w, h float64)

func (*CanvasRenderingContext2D) FillRect Uses

func (ctx *CanvasRenderingContext2D) FillRect(x, y, w, h float64)

func (*CanvasRenderingContext2D) LineTo Uses

func (ctx *CanvasRenderingContext2D) LineTo(x, y float64)

func (*CanvasRenderingContext2D) MoveTo Uses

func (ctx *CanvasRenderingContext2D) MoveTo(x, y float64)

func (*CanvasRenderingContext2D) SetFillStyle Uses

func (ctx *CanvasRenderingContext2D) SetFillStyle(style interface{})

func (*CanvasRenderingContext2D) SetLineWidth Uses

func (ctx *CanvasRenderingContext2D) SetLineWidth(w float64)

func (*CanvasRenderingContext2D) SetStrokeStyle Uses

func (ctx *CanvasRenderingContext2D) SetStrokeStyle(style interface{})

func (*CanvasRenderingContext2D) Stroke Uses

func (ctx *CanvasRenderingContext2D) Stroke()

func (*CanvasRenderingContext2D) Translate Uses

func (ctx *CanvasRenderingContext2D) Translate(x, y float64)

Package canvas imports 1 packages (graph) and is imported by 1 packages. Updated 2017-08-27. Refresh now. Tools for package owners.