transfer

package
v1.0.0-rc.1 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2022 License: GPL-3.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Color

type Color struct {
	Red   float64 `json:"r"`
	Green float64 `json:"g"`
	Blue  float64 `json:"b"`
	Alpha float64 `json:"a"`
}

type Icon

type Icon struct {
	Size   int     `json:"size"`
	Layers []Layer `json:"layers"`
}

type Layer

type Layer struct {
	FileName string  `json:"fileName"`
	Offset   Offset  `json:"offset"`
	Scale    float64 `json:"scale"`
	Size     int     `json:"size"`
	Tint     Color   `json:"tint"`
}

type Offset

type Offset struct {
	X int `json:"x"`
	Y int `json:"y"`
}

type RenderProperties

type RenderProperties struct {
	RenderedSize  int
	RenderedScale float64
	OutputSize    int
}

RenderProperties hold additional values needed for rendering an icon.

func NewRenderPropertiesFromIcon

func NewRenderPropertiesFromIcon(icon Icon) RenderProperties

NewRenderPropertiesFromIcon creates the rendering properties for the provided icon.

Jump to

Keyboard shortcuts

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