backgroundImage

package
v0.0.0-...-958e9d3 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2020 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Dir

type Dir string
var ToBottom Dir = "to bottom"
var ToLeft Dir = "to left"
var ToRight Dir = "to right"
var ToTop Dir = "to top"

func Degree

func Degree(angle interface{}) Dir

type SizeOrExtent

type SizeOrExtent string
var ClosestCorner SizeOrExtent = "closest-corner"
var ClosestSide SizeOrExtent = "closest-side"
var FarthestCorner SizeOrExtent = "farthest-corner"
var FarthestSide SizeOrExtent = "farthest-side"

func Percent

func Percent(percent interface{}) SizeOrExtent

func Pixels

func Pixels(len interface{}) SizeOrExtent

type Type

type Type string
const (
	None    Type = "none"
	Initial Type = "initial"
	Inherit Type = "inherit"
)

func LinearGradient

func LinearGradient(dir Dir, colors ...colorStop.Type) Type

LinearGradient Note colors can be color2.Type too.

func RadialGradientCircle

func RadialGradientCircle(sizeOrExtent *SizeOrExtent, position *position.Value, colorStops ...colorStop.Type) Type

RadialGradientCircle sizeOrExtent is optional, only Pixels() or Extent const are allowed (Percent is NOT allowed) position is optional

func RadialGradientEllipse

func RadialGradientEllipse(sizeOrExtent *SizeOrExtent, position *position.Value, colorStops ...colorStop.Type) Type

RadialGradientEllipse sizeOrExtent is optional, requires two Pixels()'s or Percent()'s (ex. 20% 20%), only one extent const position is optional

func RepeatingLinearGradient

func RepeatingLinearGradient(dir Dir, colors ...colorStop.Type) Type

func RepeatingRadialGradientCircle

func RepeatingRadialGradientCircle(sizeOrExtent *SizeOrExtent, position *position.Value, colorStops ...colorStop.Type) Type

RepeatingRadialGradientCircle sizeOrExtent is optional, only Pixels() or Extent const are allowed (Percent is NOT allowed) position is optional

func RepeatingRadialGradientEllipse

func RepeatingRadialGradientEllipse(sizeOrExtent *SizeOrExtent, position *position.Value, colorStops ...colorStop.Type) Type

RepeatingRadialGradientEllipse sizeOrExtent is optional, requires two Pixels()'s or Percent()'s (ex. 20% 20%), only one extent const position is optional

func URL

func URL(url string) Type

URL make

func (Type) AddTo

func (t Type) AddTo(m map[string]string)

func (Type) Apply

func (t Type) Apply(h *vecty.HTML)

type Value

type Value []Type

func (Value) AddTo

func (v Value) AddTo(m map[string]string)

func (Value) Apply

func (v Value) Apply(h *vecty.HTML)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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