renderer

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2024 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RenderFilter

type RenderFilter struct {
	Create filter.CreateFilter
	Layer  filter.LayerFilter
	Blend  filter.BlendFilter
	Resize filter.ResizeFilter
}

RenderFilter holds the filters to be used during rendering an icon.

type Renderer

type Renderer struct {
	// contains filtered or unexported fields
}

func New

func New() *Renderer

func (*Renderer) AddModsDirectory

func (r *Renderer) AddModsDirectory(modsDirectory string)

AddModsDirectory adds a directory containing the mods to the renderer. It is possible to add several directories.

func (*Renderer) Render

func (r *Renderer) Render(icon transfer.RenderIcon) (image.Image, error)

Render renders the provided icon into the final image.

Jump to

Keyboard shortcuts

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