primitive

package
v0.0.0-...-8297250 Latest Latest
Warning

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

Go to latest
Published: Feb 2, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Desaturate

func Desaturate(c color.RGBA, amount uint8) color.RGBA

func FillShape

func FillShape(d tinygui.Displayer, x, y, w, h int16, s *Shape, c color.RGBA)

func FilledBox

func FilledBox(d tinygui.Displayer, x, y, w, h int16, c color.RGBA)

func FilledBoxWithShadow

func FilledBoxWithShadow(d tinygui.Displayer, x, y, w, h int16, c, s1, s2 color.RGBA)

func FilledCircle

func FilledCircle(d tinygui.Displayer, x, y, w int16, c color.RGBA)

func FilledCircleWithShadow

func FilledCircleWithShadow(d tinygui.Displayer, x, y, w int16, c, s1, s2 color.RGBA)

func LineWidth

func LineWidth(font *tinyamifont.Font, str string) (innerWidth uint32, outboxWidth uint32)

func OutlineBox

func OutlineBox(d tinygui.Displayer, x, y, w, h int16, c color.RGBA)

func OutlineBoxWithShadow

func OutlineBoxWithShadow(d tinygui.Displayer, x, y, w, h int16, c, s1, s2 color.RGBA)

func ToHSV

func ToHSV(r, g, b uint8) (h, s, v uint8)

func ToRGB

func ToRGB(h, s, v uint8) (r, g, b uint8)

func TransitionColor

func TransitionColor(fromColor color.RGBA, toColor color.RGBA, amount uint8) color.RGBA

func WriteLine

func WriteLine(display drivers.Displayer, font *tinyamifont.Font, x int16, y int16, str string, c color.RGBA)

Types

type LineSegment

type LineSegment struct {
	A Point8
	B Point8
}

type Point8

type Point8 struct {
	X uint8
	Y uint8
}

type Shape

type Shape struct {
	Lines []LineSegment
}

Jump to

Keyboard shortcuts

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