oklab

package module
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2025 License: Apache-2.0 Imports: 2 Imported by: 3

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
}

Oklab is a color in the Oklab color space.

func (Oklab) RGBA

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

RGBA implements color.Color.

type Oklch

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

Oklch is a color in the Oklch color space.

func (Oklch) RGBA

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

RGBA implements color.Color.

Jump to

Keyboard shortcuts

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