board

package
v0.0.0-...-095ab7e Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Board

type Board struct {
	Width  int
	Height int

	//
	ZoomFactor float32

	TranslationSpeed float32
	// contains filtered or unexported fields
}

func New

func New(canvas js.Value) (*Board, error)

func (*Board) Draw

func (b *Board) Draw()

func (*Board) EnablePixelInspector

func (b *Board) EnablePixelInspector(shouldTurnOn bool)

func (*Board) ResetView

func (b *Board) ResetView()

func (*Board) SetInspectorSize

func (b *Board) SetInspectorSize(inspectorSize float32)

func (*Board) SetPixels

func (b *Board) SetPixels(data []byte)

func (*Board) SetWidthHeight

func (b *Board) SetWidthHeight(w, h int)

func (*Board) SetWidthHeightPixelInspector

func (b *Board) SetWidthHeightPixelInspector(n int)

Jump to

Keyboard shortcuts

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