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)