palette

package
v0.0.0-...-8ad53de Latest Latest
Warning

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

Go to latest
Published: May 8, 2020 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Grey

func Grey() color.Palette

Grey creates a greyscale palette with increments of 1 from 0 to 255.

func Rainbow

func Rainbow(step int) (color.Palette, error)

Rainbow creates a palette of colors in rainbow order. It accepts a step parameter which determines the distance between each color shift. The smaller the step, the more individual colors will result in the palette. The smallest possible step is 7, which results in 223 evenly spaced colors. With larger steps, there will be less colors, and the colors will be less evenly spaced. nolint: funlen

Types

This section is empty.

Jump to

Keyboard shortcuts

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