style

package
v0.0.0-...-a3e6692 Latest Latest
Warning

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

Go to latest
Published: May 14, 2024 License: CC0-1.0 Imports: 2 Imported by: 0

Documentation

Overview

Package style contains some commonly used colours and colour gradients.

Index

Constants

View Source
const Thickness = 0.02

Variables

View Source
var (
	Spectrum, _ = colour.NewLChMajorGrad(rgb.Red.LCh(), rgb.Yellow.LCh())

	SymmetricalSpectrum = func() *colour.Join {
		gradPart1, _ := colour.NewLChMajorGrad(
			rgb.Red.LCh(), rgb.Yellow.LCh(),
		)
		gradPart2, _ := colour.NewLChMajorGrad(
			rgb.Yellow.LCh(), rgb.Red.LCh(),
		)
		j := colour.NewJoin()
		j.Append(gradPart1, 1)
		j.Append(gradPart2, 1)
		return j
	}()
)
View Source
var (
	Black       = colour.NewMonoGrad(rgb.Black.LCh())
	Cyan        = colour.NewMonoGrad(rgb.Cyan.LCh())
	DarkOrange  = colour.NewMonoGrad(rgb.Darkorange.LCh())
	DeepSkyBlue = colour.NewMonoGrad(rgb.Deepskyblue.LCh())
	Pink        = colour.NewMonoGrad(rgb.Pink.LCh())
	Purple      = colour.NewMonoGrad(rgb.Purple.LCh())
)

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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