factoryShadow

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: 5 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewShadow

func NewShadow(

	color color.RGBA,
	blur,
	offsetX,
	offsetY float64,
	density interface{},
	iDensity iotmaker_platform_coordinate.IDensity,

) iotmaker_platform_IDraw.IFilterShadowInterface

en: creates a shadow effect over the canvas draw image

pt_br: cria o efeito de sombra sobre o desenho

Example:

color        := colornames.DarkredHalfTransparent
blur         := 5
offsetX      := 2
offsetY      := 2
density      := 1.0
iDensity     := &Density{}
shadowFilter := shadow.NewShadowFilter(color, blur, offsetX, offsetY)

Types

This section is empty.

Jump to

Keyboard shortcuts

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