draw

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: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BasicBox

type BasicBox struct {
	Platform   iotmaker_platform_IDraw.IDraw
	ScratchPad iotmaker_platform_IDraw.IDraw
	Id         string
	Dimensions dimensions.Dimensions

	Ink ink.Ink

	// see clearRectangle() and getCompleteImageData() - start
	OutBoxDimensions dimensions.Dimensions
	// contains filtered or unexported fields
}

func (*BasicBox) CalculateImageData

func (el *BasicBox) CalculateImageData()

CalculateImageData see SetEnableDataImageCalculate() see SetAlphaChannelSensibility() see SetImageDataCalculateMethod()

func (*BasicBox) ConfigGradientPlatformAndFilter

func (el *BasicBox) ConfigGradientPlatformAndFilter()

func (*BasicBox) ConfigShadowPlatformAndFilter

func (el *BasicBox) ConfigShadowPlatformAndFilter()

func (*BasicBox) Create

func (el *BasicBox) Create()

func (*BasicBox) GetCollisionBox

func (el *BasicBox) GetCollisionBox(xEvent, yEvent float64) bool

func (*BasicBox) GetCollisionByAlphaChannel

func (el *BasicBox) GetCollisionByAlphaChannel(x, y int) bool

func (*BasicBox) GetDimensions

func (el *BasicBox) GetDimensions() dimensions.Dimensions

func (*BasicBox) GetId

func (el *BasicBox) GetId() string

func (*BasicBox) GetInk

func (el *BasicBox) GetInk() ink.Ink

func (*BasicBox) GetMouseOverFunctionsList

func (el *BasicBox) GetMouseOverFunctionsList() map[string][]mouse.PointerCollisionFunction

func (*BasicBox) GetOutBoxDimensions

func (el *BasicBox) GetOutBoxDimensions() dimensions.Dimensions

func (*BasicBox) GetPixelAlphaChannel

func (el *BasicBox) GetPixelAlphaChannel(x, y float64) uint8

func (*BasicBox) GetPixelColor

func (el *BasicBox) GetPixelColor(x, y float64) color.RGBA

func (*BasicBox) GetPlatform

func (el *BasicBox) GetPlatform() iotmaker_platform_IDraw.IDraw

func (*BasicBox) GetScratchPad

func (el *BasicBox) GetScratchPad() iotmaker_platform_IDraw.IDraw

func (*BasicBox) SetAlphaChannelSensibility

func (el *BasicBox) SetAlphaChannelSensibility(value uint8)

func (*BasicBox) SetEnableDataImageCalculate

func (el *BasicBox) SetEnableDataImageCalculate(value bool)

func (*BasicBox) SetImageDataCalculateMethod

func (el *BasicBox) SetImageDataCalculateMethod(value genericTypes.ImageDataCaptureMethod)

SetImageDataCalculateMethod pt_br: Define o método usado para calcular os dados da imagem usado para detectar colisão

KImageDataCaptureMethodBooleanSensibility: Arquiva um mapa de booleanos no formato mapa[x][y]bool
KImageDataCaptureMethodCompleteData: Arquiva um mapa de RGBA no formato mapa[x][y]RGBA
KImageDataCaptureMethodAlphaChannelOnly: Arquiva um mapa de uint8 no formato mapa[x][y]uint8
Veja também SetAlphaChannelSensibility() e SetEnableDataImageCalculate()

type ChartLinear

type ChartLinear struct {
	Platform iotmaker_platform_IDraw.IDraw

	X      float64
	Y      float64
	Width  float64
	Height float64

	LineColor color.RGBA

	XAxis []float64
	YAxis []float64

	XAxisLine  float64
	YAxisLine  float64
	XAxisColor color.RGBA
	YAxisColor color.RGBA

	XSubAxisLine  float64
	YSubAxisLine  float64
	XSubAxisColor color.RGBA
	YSubAxisColor color.RGBA

	Density  interface{}
	IDensity iotmaker_platform_coordinate.IDensity
}

func (*ChartLinear) Begin

func (el *ChartLinear) Begin(x, y float64)

func (*ChartLinear) Create

func (el *ChartLinear) Create()

func (*ChartLinear) End

func (el *ChartLinear) End()

func (*ChartLinear) Pixel

func (el *ChartLinear) Pixel(x, y float64)

type LineTo

type LineTo struct {
	Platform  iotmaker_platform_IDraw.IDraw
	Density   interface{}
	X1        float64
	Y1        float64
	X2        float64
	Y2        float64
	LineWidth float64
}

func (*LineTo) Create

func (el *LineTo) Create()

Jump to

Keyboard shortcuts

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