polyscene

package
v0.0.0-...-c4a1d86 Latest Latest
Warning

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

Go to latest
Published: May 6, 2020 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Polyscene

type Polyscene struct {
	Theme *cleantheme.Theme
	// contains filtered or unexported fields
}

A Polyscen shows a slice of triangulated polygons in a 2D environment.

func New

func New(theme *cleantheme.Theme) Polyscene

func (*Polyscene) Bounds

func (c *Polyscene) Bounds() (bnd v2d.Rect)

func (Polyscene) Layout

func (c Polyscene) Layout(gtx *layout.Context, shapes [][][3]v2d.Vec)

func (*Polyscene) SetBounds

func (c *Polyscene) SetBounds(bnd v2d.Rect)

Jump to

Keyboard shortcuts

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