rgb

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrChartElementColorRGBBadValue = fmt.Errorf("rgb value should be between %d and %d if it's set", minValue, maxValue)

ErrChartElementColorRGBBadValue contains error message about bad RGB value.

Functions

func ValidateChartElementColor

func ValidateChartElementColor(chartElementColor *render.ChartElementColor) error

ValidateChartElementColor validates if chart element color can be used as RGB color.

func ValidateChartElementColorJSON

func ValidateChartElementColorJSON(color *view.ChartElementColor) (*render.ChartElementColor, error)

ValidateChartElementColorJSON parses and validates chart element RGB color JSON representation.

Types

This section is empty.

Jump to

Keyboard shortcuts

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