gradient

package
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2022 License: Apache-2.0 Imports: 3 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ColorStop

type ColorStop struct {
	Stop  float64
	Color color.RGBA
}

type Gradient

type Gradient struct {
	Platform     iotmaker_platform_IDraw.ICanvasGradient
	Type         Select
	CoordinateP0 interface{}
	CoordinateP1 interface{}
	ColorList    []ColorStop
}

func (*Gradient) Fill

func (el *Gradient) Fill(gradient interface{})

func (*Gradient) PrepareFilter

func (el *Gradient) PrepareFilter(platform iotmaker_platform_IDraw.ICanvasGradient)

func (*Gradient) SetP0

func (el *Gradient) SetP0(point interface{})

func (*Gradient) SetP1

func (el *Gradient) SetP1(point interface{})

func (*Gradient) Stroke

func (el *Gradient) Stroke(gradient interface{})

type Select

type Select int
const (
	KLinearFill Select = iota + 1
	KLinearStroke
	KLinearFillAndStroke
	KRadialFill
	KRadialStroke
	KRadialFillAndStroke
)

Jump to

Keyboard shortcuts

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