oklab

package module
v0.0.0-...-83d6845 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

README

Documentation

Overview

Package oklab provides color.Color implementations for Oklab and Oklch.

Index

Constants

This section is empty.

Variables

View Source
var (
	OklabModel color.Model = color.ModelFunc(oklabModelFunc)
	OklchModel color.Model = color.ModelFunc(oklchModelFunc)
)

Functions

This section is empty.

Types

type Oklab

type Oklab struct {
	L     float64
	A     float64
	B     float64
	Alpha float64
}

func (Oklab) RGBA

func (c Oklab) RGBA() (uint32, uint32, uint32, uint32)

type Oklch

type Oklch struct {
	H     float64
	C     float64
	L     float64
	Alpha float64
}

func (Oklch) RGBA

func (c Oklch) RGBA() (uint32, uint32, uint32, uint32)

Jump to

Keyboard shortcuts

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