convert

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Jun 23, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ColorAt added in v0.2.1

func ColorAt(img image.Image, p Point) uint32

func ColorToHex

func ColorToHex(color uint32) string

func OpenImage

func OpenImage(file string) (image.Image, error)

func Path

func Path(img image.Image, scale uint) (string, error)

func RGBAToColor

func RGBAToColor(r, g, b, a uint32) uint32

func Rectangle

func Rectangle(img image.Image, scale uint) (string, error)

func Square

func Square(img image.Image, scale uint) (string, error)

Types

type Direction

type Direction uint8
const (
	UP Direction = iota
	RIGHT
	DOWN
	LEFT
)

type Point

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

type Rect

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

Jump to

Keyboard shortcuts

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