Documentation ¶
Overview ¶
Package scene encodes and decodes graphics commands in the format used by the compute renderer.
Index ¶
- Constants
- func DecodeCubic(cmd Command) (from, ctrl0, ctrl1, to f32.Point)
- func DecodeGap(cmd Command) (from, to f32.Point)
- func DecodeLine(cmd Command) (from, to f32.Point)
- func DecodeQuad(cmd Command) (from, ctrl, to f32.Point)
- type Command
- func BeginClip(bbox f32.Rectangle) Command
- func Cubic(start, ctrl0, ctrl1, end f32.Point) Command
- func EndClip(bbox f32.Rectangle) Command
- func FillColor(col color.RGBA) Command
- func FillImage(index int, offset image.Point) Command
- func Gap(start, end f32.Point) Command
- func Line(start, end f32.Point) Command
- func Quad(start, ctrl, end f32.Point) Command
- func SetFillMode(mode FillMode) Command
- func SetLineWidth(width float32) Command
- func Transform(m f32.Affine2D) Command
- type FillMode
- type Op
Constants ¶
View Source
const ( FillModeNonzero = 0 FillModeStroke = 1 )
View Source
const CommandSize = int(unsafe.Sizeof(Command{}))
Variables ¶
This section is empty.
Functions ¶
func DecodeCubic ¶
func DecodeLine ¶
func DecodeQuad ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.