led

package
v0.0.0-...-3d984ba Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2018 License: BSD-3-Clause 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 uint32

Color represents 32-bit alpha-premultipled color, having 8 bits for each of alpha, red, green and blue (0xAARRGGBB).

func RGB

func RGB(r, g, b byte) Color

func RGBA

func RGBA(r, g, b, a byte) Color

RGBA returns Color for alpha-premultipled r, g, b (r<=a && g<=a && b<=a). To obtain Color from not alpha-premultipled R, G, B use RGB(R, G, B).Mask(a).

func (Color) Alpha

func (c Color) Alpha() byte

func (Color) Blend

func (c1 Color) Blend(c2 Color, alpha byte) Color

func (Color) Blue

func (c Color) Blue() byte

func (Color) Green

func (c Color) Green() byte

func (Color) Red

func (c Color) Red() byte

func (Color) Scale

func (c Color) Scale(alpha byte) Color

Directories

Path Synopsis
ws281x
wsspi
Package wsspi allows to use SPI based driver to controll a string of WS281x LEDs.
Package wsspi allows to use SPI based driver to controll a string of WS281x LEDs.
wsuart
Package wsuart allows to use UART based driver to controll a string of WS281x LEDs.
Package wsuart allows to use UART based driver to controll a string of WS281x LEDs.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳