Documentation ¶
Index ¶
- type Dir
- type SizeOrExtent
- type Type
- func LinearGradient(dir Dir, colors ...colorStop.Type) Type
- func RadialGradientCircle(sizeOrExtent *SizeOrExtent, position *position.Value, ...) Type
- func RadialGradientEllipse(sizeOrExtent *SizeOrExtent, position *position.Value, ...) Type
- func RepeatingLinearGradient(dir Dir, colors ...colorStop.Type) Type
- func RepeatingRadialGradientCircle(sizeOrExtent *SizeOrExtent, position *position.Value, ...) Type
- func RepeatingRadialGradientEllipse(sizeOrExtent *SizeOrExtent, position *position.Value, ...) Type
- func URL(url string) Type
- type Value
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"
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
func LinearGradient ¶
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 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