keyboard

package
v0.4.4 Latest Latest
Warning

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

Go to latest
Published: Jun 4, 2022 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const RandomColor = "random"

Variables

This section is empty.

Functions

func BrightnessFileHandler

func BrightnessFileHandler(c string) error

BrightnessFileHandler writes a hex value to brightness, and returns the bytes written

func ColorFileHandler

func ColorFileHandler(color string) error

ColorFileHandler writes a string to colorFiles

func EachPresetColor

func EachPresetColor(cb func(name, value string))

func GetCurrentBrightness

func GetCurrentBrightness() (string, error)

func GetCurrentColors

func GetCurrentColors() (map[string]string, error)

func LoadEmbeddedColors

func LoadEmbeddedColors() error

Types

type RGBColor

type RGBColor struct {
	Red   int
	Green int
	Blue  int
}

RGBColor represents Red Green and Blue values of a color

func (RGBColor) GetColorInHex

func (c RGBColor) GetColorInHex() string

GetColorInHex returns a color in HEX format

type SysPath

type SysPath struct {
	Path  string
	Files [8]string
}

Jump to

Keyboard shortcuts

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