rgbpicker

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

RGB Picker

RGB Picker Example

The rgbpicker component allows you to quickly prompt the user to choose a rgb color (Red,Green,Blue). Increment/Decrement/Move with the arrow keys or HJ/KL, 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(rgb *[3]uint8, selected *int, opts wtopts.Opts) []string

func HandleKey

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

func RGBPicker

func RGBPicker(customOpts ...wtopts.Opts) (rgb [3]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