color

package
v0.0.0-...-c2ff2fd Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2022 License: BSD-2-Clause Imports: 0 Imported by: 0

Documentation

Overview

Package color defines a 16-bit RGB565 color.

Index

Constants

This section is empty.

Variables

View Source
var (
	Red   = New(255, 0, 0)
	Green = New(0, 255, 0)
	Blue  = New(0, 0, 255)
	Black = New(0, 0, 0) // Off
	White = New(255, 255, 255)
)

Predefined colors

Functions

This section is empty.

Types

type Color

type Color uint16

Color of a pixel (16 bit RGB565)

func New

func New(red, green, blue uint8) Color

New color from RGB components (0-255).

Jump to

Keyboard shortcuts

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