color

package
v1.0.0-alpha Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2021 License: BSD-3-Clause, MIT Imports: 6 Imported by: 0

Documentation

Overview

Package color has functions for create color scales and color transformations.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConvertHexToRGB

func ConvertHexToRGB(hex string) (c color.RGBA, err error)

ConvertHexToRGB converts a hex color to RGB

Types

type Gradient

type Gradient struct {
	ColorSpace string
	Invert     bool
	NumColors  int
}

Gradient type.

func InitializeGradient

func InitializeGradient() *Gradient

InitializeGradient initializes a color gradient.

func (*Gradient) CreateColorGradient

func (g *Gradient) CreateColorGradient() (gradient []Space)

CreateColorGradient creates a color gradient.

type HSL

type HSL struct {
	// contains filtered or unexported fields
}

HSL color representation.

type RGB

type RGB struct {
	// contains filtered or unexported fields
}

RGB tuple.

type Space

type Space struct {
	Hex string
	RGB []int
}

Space to store Hex and RGB values.

Jump to

Keyboard shortcuts

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