rgbapicker

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2024 License: MIT Imports: 10 Imported by: 0

README

RGBA Picker

RGBA Picker Example

The rgbapicker component allows you to quickly prompt the user to choose a rgba color (Red,Green,Blue,Opacity). Increment/Decrement/Move with the arrow keys or HJKL, type a number to change a field, and validate with CR.

You can found an example with and without options here

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Draw

func Draw(rgba *[4]uint8, selected *int, opts wtopts.Opts) []string

func HandleKey

func HandleKey(selected *int, rgba *[4]uint8, key string, opts wtopts.Opts) error

func RGBAPicker

func RGBAPicker(customOpts ...wtopts.Opts) (rgba [4]uint8, err error)

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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