shadow

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: 0

Documentation

Overview

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
shadowFilter := shadow.NewShadowFilter(color, blur, offsetX, offsetY)

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Shadow

type Shadow struct {
	Platform iotmaker_platform_IDraw.ICanvasShadow
	Color    color.RGBA
	Blur     float64
	OffsetX  int
	OffsetY  int
}

en: Please, usa a function shadow.NewShadowFilter() to make a new filter

pt_br: Por favor, use a função shadow.NewShadowFilter() para montar um novo filtro

func (*Shadow) PrepareFilter

func (el *Shadow) PrepareFilter(platform iotmaker_platform_IDraw.ICanvasShadow)

en: Please, usa a function shadow.NewShadowFilter() to make a new filter. receive a canvas specific platform draw shadow functions.

pt_br: Por favor, use a função shadow.NewShadowFilter() para montar um novo filtro recebe as funções de desenho específicas do elemento canvas da plataforma

Jump to

Keyboard shortcuts

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