The dufy Reference Manual

Table of Contents

Next: , Previous: , Up: (dir)   [Contents][Index]

The dufy Reference Manual

This is the dufy Reference Manual, version 0.4.1, generated automatically by Declt version 3.0 "Montgomery Scott" on Wed Nov 04 13:20:49 2020 GMT+0.


Next: , Previous: , Up: Top   [Contents][Index]

1 Introduction

Dufy - Color Library for Common Lisp

Build Status Quicklisp dist

Dufy is a library for exact color manipulation and conversion in various color spaces, which supports the following color models:

Dufy can deal with the following concepts:

Documentation

Besides this README file, most of the documentation is written as docstrings in the source code. Quickdocs will be helpful to overview them. Some other information (e.g. changes between versions) is in github wiki.

Dependencies

You can install all of the dependent libraries via quicklisp.

Install

The easiest way to install dufy is to use quicklisp:

* (ql:quickload :dufy)

The latest version in this repository can also be loaded with quicklisp:

$ cd ~/quicklisp/local-projects   # the path is held in ql:*local-project-directories*
$ git clone git@github.com:privet-kitty/dufy.git
$ sbcl   # , ccl, etc.

* (ql:register-local-projects)
* (ql:quickload :dufy)

If you want to load the ASDF system directly without quicklisp, you should put the directory of dufy to an appropriate location (e.g. ~/common-lisp/dufy/) and do (asdf:load-system :dufy).

Note that the master branch always coincides with the latest stable release. The develop branch is usually where development happens.

Basic Usage

Tree of Direct Converters

rgba -- qrgba
qrgba -- rgbapack

xyz -- lab
lab -- lchab
xyz -- luv
luv -- lchuv
lchuv -- hsluv
lchuv -- hpluv
rgb -- hsv
rgb -- hsl

lchab -- mhvc  [ label = "(illuminant C)" ]
mhvc -- munsell

{ rank=same; rgb rgba }

} converter_tree

The fundamental color space of dufy is CIE XYZ (Illuminant D65): There are xyz-to- and -to-xyz converters for all other (connected) color spaces. Every converter function just receives numbers and returns multiple numbers:

(dufy:lab-to-xyz 87.07 -78.15 -20.51)  ; L*=87.07, a*=-78.15, b*=-20.51
;; => 0.3731544163010862d0 ; X
;;    0.701492216468595d0  ; Y
;;    1.0600774614243746d0 ; Z
   
(multiple-value-call #'dufy:xyz-to-qrgb
  (dufy:lab-to-xyz 87.07 -78.15 -20.51)
  :clamp nil)
;; => -169 ; R
;;    255  ; G
;;    255  ; B

(multiple-value-call #'dufy:xyz-to-qrgb
  (dufy:lab-to-xyz 87.07 -78.15 -20.51))
;; => 0    ; R
;;    255  ; G
;;    255  ; B

In the second example, a conversion from CIELAB to quantized RGB, xyz-to-qrgb returns a negative R value, which means the color is out of gamut; it is clamped in the third example.

Out of which gamut, however? By default, xyz-to-qrgb (and all other RGB converters) regard it as sRGB (D65). You can specify the RGB space explicitly:

(dufy:xyz-to-qrgb 0.37314 0.70144 1.0601 :rgbspace dufy:+srgb+ :clamp nil)  ; sRGB
;; => -169
;;    255
;;    255

(dufy:xyz-to-qrgb 0.37314 0.70144 1.0601 :rgbspace dufy:+adobe+ :clamp nil) ; Adobe RGB
;; => 2
;;    255
;;    255
   
(dufy:xyz-to-qrgb 0.37314 0.70144 1.0601 :rgbspace dufy:+bg-srgb-10+ :clamp nil) ; bg-sRGB (10 bit)
;; => 47
;;    893
;;    893
;; In the Adobe RGB space and bg-sRGB space the color is within gamut.

Likewise most converters regard the implicit illuminant as D65. You can also specify it explicitly:

(dufy:luv-to-xyz 100 0 0)                              ; Illuminant D65 
(dufy:luv-to-xyz 100 0 0 :illuminant dufy:+illum-d65+) ; Illuminant D65
;; => 0.9504692366968726d0
;;    1.0d0
;;    1.0889440678362423d0
;; the white point of standard illuminant D65

(dufy:luv-to-xyz 100 0 0 :illuminant dufy:+illum-e+)   ; Illuminant E
;; => 1.0d0
;;    1.0d0
;;    1.0000000000000004d0

Modules

Dufy consists of several independent modules:

Since the main package dufy contains slightly large colorimetric data, you may want to load dufy/core instead of dufy in some cases.

As of dufy 0.3.0, both the system names and the package names use the separator / instead of -, though the old package prefixes like dufy-core are left as nicknames.


Next: , Previous: , Up: Top   [Contents][Index]

2 Systems

The main system appears first, followed by any subsystem dependency.


Next: , Previous: , Up: Systems   [Contents][Index]

2.1 dufy

Author

Hugo I.

License

MIT

Description

Color library for Common Lisp

Version

0.4.1

Dependencies
Source

dufy.asd (file)

Components

Next: , Previous: , Up: Systems   [Contents][Index]

2.2 dufy/munsell

Author

Hugo I.

License

MIT

Description

Munsell Color System

Dependencies
Source

dufy.asd (file)

Component

munsell (module)


Next: , Previous: , Up: Systems   [Contents][Index]

2.3 dufy/hsluv

Author

Hugo I.

License

MIT

Description

HSLuv and HPLuv color spaces

Dependency

dufy/core (system)

Source

dufy.asd (file)

Component

hsluv (module)


Next: , Previous: , Up: Systems   [Contents][Index]

2.4 dufy/core

Author

Hugo I.

License

MIT

Dependencies
Source

dufy.asd (file)

Component

core (module)


Previous: , Up: Systems   [Contents][Index]

2.5 dufy/internal

Author

Hugo I.

License

MIT

Description

Common definitions not exported in the main package

Dependency

alexandria

Source

dufy.asd (file)

Component

internal (module)


Next: , Previous: , Up: Top   [Contents][Index]

3 Modules

Modules are listed depth-first from the system components tree.


Next: , Previous: , Up: Modules   [Contents][Index]

3.1 dufy/dat

Parent

dufy (system)

Location

dat/

Components

Next: , Previous: , Up: Modules   [Contents][Index]

3.2 dufy/src

Parent

dufy (system)

Location

src/

Component

package.lisp (file)


Next: , Previous: , Up: Modules   [Contents][Index]

3.3 dufy/munsell/munsell

Parent

dufy/munsell (system)

Location

src/munsell/

Components

Next: , Previous: , Up: Modules   [Contents][Index]

3.4 dufy/hsluv/hsluv

Parent

dufy/hsluv (system)

Location

src/hsluv/

Components

Next: , Previous: , Up: Modules   [Contents][Index]

3.5 dufy/core/core

Parent

dufy/core (system)

Location

src/core/

Components

Previous: , Up: Modules   [Contents][Index]

3.6 dufy/internal/internal

Parent

dufy/internal (system)

Location

src/internal/

Components

Next: , Previous: , Up: Top   [Contents][Index]

4 Files

Files are sorted by type and then listed depth-first from the systems components trees.


Next: , Previous: , Up: Files   [Contents][Index]

4.1 Lisp


Next: , Previous: , Up: Lisp files   [Contents][Index]

4.1.1 dufy.asd

Location

dufy.asd

Systems

Next: , Previous: , Up: Lisp files   [Contents][Index]

4.1.2 dufy/src/package.lisp

Parent

src (module)

Location

src/package.lisp

Packages

dufy


Next: , Previous: , Up: Lisp files   [Contents][Index]

4.1.3 dufy/munsell/munsell/package.lisp

Parent

munsell (module)

Location

src/munsell/package.lisp

Packages

dufy/munsell


Next: , Previous: , Up: Lisp files   [Contents][Index]

4.1.4 dufy/munsell/munsell/y-to-value-data.lisp

Parent

munsell (module)

Location

src/munsell/y-to-value-data.lisp

Internal Definitions

+y-to-munsell-value-table+ (special variable)


Next: , Previous: , Up: Lisp files   [Contents][Index]

4.1.5 dufy/munsell/munsell/renotation-data.lisp

Parent

munsell (module)

Location

src/munsell/renotation-data.lisp

Internal Definitions

Next: , Previous: , Up: Lisp files   [Contents][Index]

4.1.6 dufy/munsell/munsell/inversed-renotation-data.lisp

Parent

munsell (module)

Location

src/munsell/inversed-renotation-data.lisp

Internal Definitions

Next: , Previous: , Up: Lisp files   [Contents][Index]

4.1.7 dufy/munsell/munsell/fundamental.lisp

Parent

munsell (module)

Location

src/munsell/fundamental.lisp

Exported Definitions
Internal Definitions

Next: , Previous: , Up: Lisp files   [Contents][Index]

4.1.8 dufy/munsell/munsell/convert.lisp

Parent

munsell (module)

Location

src/munsell/convert.lisp

Exported Definitions
Internal Definitions

Next: , Previous: , Up: Lisp files   [Contents][Index]

4.1.9 dufy/munsell/munsell/invert.lisp

Parent

munsell (module)

Location

src/munsell/invert.lisp

Exported Definitions
Internal Definitions

Next: , Previous: , Up: Lisp files   [Contents][Index]

4.1.10 dufy/hsluv/hsluv/package.lisp

Parent

hsluv (module)

Location

src/hsluv/package.lisp

Packages

dufy/hsluv


Next: , Previous: , Up: Lisp files   [Contents][Index]

4.1.11 dufy/hsluv/hsluv/hsluv.lisp

Parent

hsluv (module)

Location

src/hsluv/hsluv.lisp

Exported Definitions
Internal Definitions

Next: , Previous: , Up: Lisp files   [Contents][Index]

4.1.12 dufy/core/core/package.lisp

Parent

core (module)

Location

src/core/package.lisp

Packages

dufy/core


Next: , Previous: , Up: Lisp files   [Contents][Index]

4.1.13 dufy/core/core/cmf-data.lisp

Parent

core (module)

Location

src/core/cmf-data.lisp

Internal Definitions

Next: , Previous: , Up: Lisp files   [Contents][Index]

4.1.14 dufy/core/core/spectrum.lisp

Parent

core (module)

Location

src/core/spectrum.lisp

Exported Definitions
Internal Definitions

Next: , Previous: , Up: Lisp files   [Contents][Index]

4.1.15 dufy/core/core/illuminants-data.lisp

Parent

core (module)

Location

src/core/illuminants-data.lisp

Exported Definitions
Internal Definitions

+illum-c-table+ (special variable)


Next: , Previous: , Up: Lisp files   [Contents][Index]

4.1.16 dufy/core/core/xyz.lisp

Parent

core (module)

Location

src/core/xyz.lisp

Exported Definitions

Next: , Previous: , Up: Lisp files   [Contents][Index]

4.1.17 dufy/core/core/rgb.lisp

Parent

core (module)

Location

src/core/rgb.lisp

Exported Definitions
Internal Definitions

Next: , Previous: , Up: Lisp files   [Contents][Index]

4.1.18 dufy/core/core/lab-and-luv.lisp

Parent

core (module)

Location

src/core/lab-and-luv.lisp

Exported Definitions
Internal Definitions

Next: , Previous: , Up: Lisp files   [Contents][Index]

4.1.19 dufy/core/core/cat.lisp

Parent

core (module)

Location

src/core/cat.lisp

Exported Definitions
Internal Definitions

Next: , Previous: , Up: Lisp files   [Contents][Index]

4.1.20 dufy/core/core/builtin-rgbspaces.lisp

Parent

core (module)

Location

src/core/builtin-rgbspaces.lisp

Exported Definitions
Internal Definitions

Next: , Previous: , Up: Lisp files   [Contents][Index]

4.1.21 dufy/core/core/deltae.lisp

Parent

core (module)

Location

src/core/deltae.lisp

Exported Definitions

Next: , Previous: , Up: Lisp files   [Contents][Index]

4.1.22 dufy/internal/internal/package.lisp

Parent

internal (module)

Location

src/internal/package.lisp

Packages

dufy/internal


Next: , Previous: , Up: Lisp files   [Contents][Index]

4.1.23 dufy/internal/internal/utilities.lisp

Parent

internal (module)

Location

src/internal/utilities.lisp

Exported Definitions
Internal Definitions

Next: , Previous: , Up: Lisp files   [Contents][Index]

4.1.24 dufy/internal/internal/arithmetic.lisp

Parent

internal (module)

Location

src/internal/arithmetic.lisp

Exported Definitions

Next: , Previous: , Up: Lisp files   [Contents][Index]

4.1.25 dufy/internal/internal/matrix.lisp

Parent

internal (module)

Location

src/internal/matrix.lisp

Exported Definitions
Internal Definitions

determinant (function)


Next: , Previous: , Up: Lisp files   [Contents][Index]

4.1.26 dufy/internal/internal/colorspace.lisp

Parent

internal (module)

Location

src/internal/colorspace.lisp

Exported Definitions
Internal Definitions

Previous: , Up: Lisp files   [Contents][Index]

4.1.27 dufy/internal/internal/mb-line.lisp

Parent

internal (module)

Location

src/internal/mb-line.lisp

Exported Definitions
Internal Definitions

Previous: , Up: Files   [Contents][Index]

4.2 Static


Next: , Previous: , Up: Static files   [Contents][Index]

4.2.1 dufy/dat/ciede2000-test-data.csv

Parent

dat (module)

Location

dat/ciede2000-test-data.csv


Previous: , Up: Static files   [Contents][Index]

4.2.2 dufy/dat/FL3.x.tsv

Parent

dat (module)

Location

dat/FL3.x.tsv


Next: , Previous: , Up: Top   [Contents][Index]

5 Packages

Packages are listed by definition order.


Next: , Previous: , Up: Packages   [Contents][Index]

5.1 dufy

Source

package.lisp (file)

Use List

Next: , Previous: , Up: Packages   [Contents][Index]

5.2 dufy/munsell

Source

package.lisp (file)

Nickname

dufy-munsell

Use List
Used By List

dufy

Exported Definitions
Internal Definitions

Next: , Previous: , Up: Packages   [Contents][Index]

5.3 dufy/hsluv

Source

package.lisp (file)

Use List
Used By List

dufy

Exported Definitions
Internal Definitions

Next: , Previous: , Up: Packages   [Contents][Index]

5.4 dufy/core

Source

package.lisp (file)

Nickname

dufy-core

Use List
Used By List
Exported Definitions
Internal Definitions

Previous: , Up: Packages   [Contents][Index]

5.5 dufy/internal

Source

package.lisp (file)

Use List
Used By List
Exported Definitions
Internal Definitions

Next: , Previous: , Up: Top   [Contents][Index]

6 Definitions

Definitions are sorted by export status, category, package, and then by lexicographic order.


Next: , Previous: , Up: Definitions   [Contents][Index]

6.1 Exported definitions


Next: , Previous: , Up: Exported definitions   [Contents][Index]

6.1.1 Constants

Constant: +360/two-pi+
Package

dufy/internal

Source

arithmetic.lisp (file)

Constant: +two-pi/360+
Package

dufy/internal

Source

arithmetic.lisp (file)

Constant: two-pi
Package

dufy/internal

Source

arithmetic.lisp (file)


Next: , Previous: , Up: Exported definitions   [Contents][Index]

6.1.2 Special variables

Special Variable: *dat-dir-path*
Package

dufy/internal

Source

utilities.lisp (file)

Special Variable: *most-positive-non-large-double-float*
Package

dufy/munsell

Source

fundamental.lisp (file)

Special Variable: +adobe+

Adobe RGB (1998), 8-bit per channel

Package

dufy/core

Source

builtin-rgbspaces.lisp (file)

Special Variable: +adobe-16+

Adobe RGB (1998), 16-bit per channel.

Package

dufy/core

Source

builtin-rgbspaces.lisp (file)

Special Variable: +bg-srgb-10+

bg-sRGB, 10-bit per channel http://www.color.org/chardata/rgb/bgsrgb.xalter

Package

dufy/core

Source

builtin-rgbspaces.lisp (file)

Special Variable: +bg-srgb-12+

bg-sRGB, 12-bit per channel, http://www.color.org/chardata/rgb/bgsrgb.xalter

Package

dufy/core

Source

builtin-rgbspaces.lisp (file)

Special Variable: +bg-srgb-16+

bg-sRGB, 16-bit per channel, http://www.color.org/chardata/rgb/bgsrgb.xalter

Package

dufy/core

Source

builtin-rgbspaces.lisp (file)

Special Variable: +bradford+
Package

dufy/core

Source

cat.lisp (file)

Special Variable: +cat02+

Note that the CAT function returned by (gen-cat-function ... :cat +cat02+) is different from the one in CIECAM02 since the latter is non-linear.

Package

dufy/core

Source

cat.lisp (file)

Special Variable: +cat97s-revised+

Fairchild, Mark D. (2001)."A Revision of CIECAM97s for Practical Applications" http://rit-mcsl.org/fairchild//PDFs/PAP10.pdf

Package

dufy/core

Source

cat.lisp (file)

Special Variable: +cie-rgb+

CIE RGB (1931), no gamma-correction, 8-bit per channel.

Package

dufy/core

Source

builtin-rgbspaces.lisp (file)

Special Variable: +cmccat2000+
Package

dufy/core

Source

cat.lisp (file)

Special Variable: +cmccat97+
Package

dufy/core

Source

cat.lisp (file)

Special Variable: +empty-matrix+

Used instead of NIL

Package

dufy/internal

Source

matrix.lisp (file)

Special Variable: +identity-matrix+
Package

dufy/internal

Source

matrix.lisp (file)

Special Variable: +illum-a+
Package

dufy/core

Source

illuminants-data.lisp (file)

Special Variable: +illum-c+
Package

dufy/core

Source

illuminants-data.lisp (file)

Special Variable: +illum-d50+
Package

dufy/core

Source

illuminants-data.lisp (file)

Special Variable: +illum-d65+
Package

dufy/core

Source

illuminants-data.lisp (file)

Special Variable: +illum-e+
Package

dufy/core

Source

illuminants-data.lisp (file)

Special Variable: +ntsc1953+

NTSC RGB, Rec. ITU-R BT.470-6, System M, 8-bit per channel. http://www.itu.int/dms_pubrec/itu-r/rec/bt/R-REC-BT.470-6-199811-S!!PDF-E.pdf

Package

dufy/core

Source

builtin-rgbspaces.lisp (file)

Special Variable: +obs-cie1931+

CIE 1931 Standard Colorimetric Observer (2-degree).

Package

dufy/core

Source

spectrum.lisp (file)

Special Variable: +obs-cie1964+

CIE 1964 Standard Colorimetric Observer (10-degree).

Package

dufy/core

Source

spectrum.lisp (file)

Special Variable: +pal/secam+

PAL/SECAM RGB, Rec. ITU-R BT.470-6, 8-bit per channel. http://www.itu.int/dms_pubrec/itu-r/rec/bt/R-REC-BT.470-6-199811-S!!PDF-E.pdf

Package

dufy/core

Source

builtin-rgbspaces.lisp (file)

Special Variable: +prophoto+

Prophoto RGB (also known as ROMM RGB), 8-bit per channel, http://www.color.org/ROMMRGB.pdf

Package

dufy/core

Source

builtin-rgbspaces.lisp (file)

Special Variable: +prophoto-12+

Prophoto RGB (also known as ROMM RGB), 12-bit per channel, http://www.color.org/ROMMRGB.pdf

Package

dufy/core

Source

builtin-rgbspaces.lisp (file)

Special Variable: +prophoto-16+

Prophoto RGB (also known as ROMM RGB), 16-bit per channel, http://www.color.org/ROMMRGB.pdf

Package

dufy/core

Source

builtin-rgbspaces.lisp (file)

Special Variable: +scrgb-16+

scRGB(16), IEC 61966-2-2:2003 http://www.color.org/chardata/rgb/scrgb.xalter

Package

dufy/core

Source

builtin-rgbspaces.lisp (file)

Special Variable: +scrgb-nl+

scRGB-nl, IEC 61966-2-2:2003 http://www.color.org/chardata/rgb/scrgb-nl.xalter

Package

dufy/core

Source

builtin-rgbspaces.lisp (file)

Special Variable: +srgb+

sRGB, 8-bit per channel

Package

dufy/core

Source

rgb.lisp (file)

Special Variable: +von-kries+
Package

dufy/core

Source

cat.lisp (file)

Special Variable: +wide-gamut+

Wide-gamut RGB, 8-bit per channel.

Package

dufy/core

Source

builtin-rgbspaces.lisp (file)

Special Variable: +xyz-scaling+
Package

dufy/core

Source

cat.lisp (file)


Next: , Previous: , Up: Exported definitions   [Contents][Index]

6.1.3 Macros

Macro: defconverter FROM-COLORSPACE TO-COLORSPACE &key NAME EXCLUDE-ARGS DOCUMENTATION

Generates and defines a converter function from FROM-COLORSPACE to TO-COLORSPACE automatically with linking primary converters.

These secondary converters are not inlined by default, different from primary converters. You can manually declare (inline <name>) to inline them. (Declared as sb-ext:maybe-inline on SBCL.)

Package

dufy/internal

Source

colorspace.lisp (file)

Macro: defconverters FROM-COLORSPACES TO-COLORSPACES &key EXCLUDE-ARGS

Generates and defines converter functions from each color space in FROM-COLORSPACES into each color space in TO-COLORSPACES.

Package

dufy/internal

Source

colorspace.lisp (file)

Macro: define-cat-function NAME FROM-ILLUMINANT TO-ILLUMINANT &key CAT

DEFINE-macro of GEN-CAT-FUNCTION. (define-cat-function d65-to-e +illum-d65+ +illum-e+) (d65-to-e 0.9504d0 1.0d0 1.0889d0)
;; => 0.9999700272441295d0
;; 0.999998887365445d0
;; 0.9999997282885571d0

Package

dufy/core

Source

cat.lisp (file)

Macro: define-colorspace NAME ARGS &key ARG-TYPES RETURN-TYPES DOCUMENTATION
Package

dufy/internal

Source

colorspace.lisp (file)

Macro: define-functional (FNAME COLORSPACE &key TERM) LAMBDA-LIST &body BODY
Package

dufy/internal

Source

colorspace.lisp (file)

Macro: define-primary-converter (FROM-COLORSPACE TO-COLORSPACE &key NAME) LAMBDA-LIST &body BODY

Defines FOO-TO-BAR function as a primary converter. Only &key arguments (without supplied-p-parameter) and &aux arguments are allowed.

Package

dufy/internal

Source

colorspace.lisp (file)

Macro: dotimes-unroll (VAR COUNT &optional RESULT) &body BODY
Package

dufy/internal

Source

utilities.lisp (file)

Macro: extend-functional TERM COLORSPACE &key FNAME EXCLUDE-ARGS DOCUMENTATION

Generates and defines a functional on another color space. The name of the function is [COLORSPACE]-[TERM] if FNAME is not given.

Package

dufy/internal

Source

colorspace.lisp (file)

Macro: internal-real-time-after-gc &body BODY

INTERNAL-REAL-TIME macro after GC

Package

dufy/internal

Source

utilities.lisp (file)

Macro: nearly-equal-values THRESHOLD &rest FORMS
Package

dufy/internal

Source

arithmetic.lisp (file)

Macro: nlet NAME ARGS &body BODY
Package

dufy/internal

Source

utilities.lisp (file)

Macro: pow BASE POWER

Does fast exponentiation by squaring. POWER must be a literal of type (integer 1).

Package

dufy/internal

Source

arithmetic.lisp (file)

Macro: time-after-gc &body BODY

TIME macro after GC

Package

dufy/internal

Source

utilities.lisp (file)

Macro: time-median NUM &body BODY

Repeats BODY NUM times and returns the median of elapsed (internal real) times.

Package

dufy/internal

Source

utilities.lisp (file)

Macro: with-ensuring-type TYPE VARS &body BODY

Ensures and declares that the type of variables are TYPE.

Package

dufy/internal

Source

utilities.lisp (file)

Macro: with-profiling NAMES &body BODY

Works only on SBCL.

Package

dufy/internal

Source

utilities.lisp (file)


Next: , Previous: , Up: Exported definitions   [Contents][Index]

6.1.4 Compiler macros

Compiler Macro: make-illuminant &key X Z SPECTRUM OBSERVER BEGIN-WL END-WL BAND COMPILE-TIME
Package

dufy/core

Source

spectrum.lisp (file)


Next: , Previous: , Up: Exported definitions   [Contents][Index]

6.1.5 Functions

Function: approximate-spectrum SPECTRUM &key BEGIN-WL END-WL BAND

Generates an approximate spectrum of SPECTRUM by pieacewise linearization. It is used to lighten a "heavy" spectrum function.

Package

dufy/core

Source

spectrum.lisp (file)

Function: bb-spectrum WAVELENGTH-NM &optional TEMPERATURE

Spectrum function of a blackbody. Note that it is not normalized.

Package

dufy/core

Source

spectrum.lisp (file)

Function: call-with-profiling NAMES FUNC

Works only on SBCL.

Package

dufy/internal

Source

utilities.lisp (file)

Function: cat-inv-matrix INSTANCE
Function: (setf cat-inv-matrix) VALUE INSTANCE
Package

dufy/core

Source

cat.lisp (file)

Function: cat-matrix INSTANCE
Function: (setf cat-matrix) VALUE INSTANCE
Package

dufy/core

Source

cat.lisp (file)

Function: circular-clamp NUMBER MIN MAX &optional PERIMETER

A clamp function in a circle group. If NUMBER is not in
the (counterclockwise) closed interval [MIN, MAX], CIRCULAR-CLAMP returns MIN or MAX whichever is nearer to NUMBER.

Package

dufy/internal

Source

arithmetic.lisp (file)

Function: circular-lerp COEF THETA1 THETA2 &optional PERIMETER

Counterclockwise linear interpolation from THETA1 to THETA2 in a circle group. It is guaranteed that the returned value doesn’t exceed the given interval from THETA1 to THETA2 if COEF is in [0, 1]. It is, however, slower than CIRCULAR-LERP-LOOSE.

Package

dufy/internal

Source

arithmetic.lisp (file)

Function: circular-lerp-loose COEF THETA1 THETA2 &optional PERIMETER

Counterclockwise linear interpolation from THETA1 to THETA2 in a circle group. There is a possibility that the returned value slightly exceeds the interval [THETA1, THETA2] due to floating-point error. If that is incovenient, you should use CIRCULAR-LERP instead.

Package

dufy/internal

Source

arithmetic.lisp (file)

Function: circular-member NUMBER THETA1 THETA2 &optional PERIMETER

Returns true if NUMBER is within the counterclockwise closed interval [THETA1, THETA2] in a circle group.

Package

dufy/internal

Source

arithmetic.lisp (file)

Function: circular-nearer THETA1 X THETA2 &optional PERIMETER

Compares the counterclockwise distances between THETA1 and X and between X and THETA2, and returns THETA1 or THETA2 whichever is nearer.

Package

dufy/internal

Source

arithmetic.lisp (file)

Function: copy-rgbspace RGBSPACE &key ILLUMINANT BIT-PER-CHANNEL CAT

Returns a new RGBSPACE with different standard illuminant and/or bit-per-channel. All the parameters are properly recalculated. If both are nil, it is just a copier.

Package

dufy/core

Source

cat.lisp (file)

Function: degree-to-radian DEGREE
Package

dufy/internal

Source

arithmetic.lisp (file)

Function: delinearize X &key RGBSPACE
Package

dufy/core

Source

rgb.lisp (file)

Function: dequantize N &key RGBSPACE

Dequantizes a QRGB value to an RGB value

Package

dufy/core

Source

rgb.lisp (file)

Function: flat-spectrum WAVELENGTH-NM

(constantly 1d0)

Package

dufy/core

Source

spectrum.lisp (file)

Function: gen-cat-function FROM-ILLUMINANT TO-ILLUMINANT &key CAT

Returns a chromatic adaptation function.
(funcall (gen-cat-function +illum-a+ +illum-e+) 0.9504d0 1.0d0 1.0889d0) => 0.9999700272441295d0
0.999998887365445d0
0.9999997282885571d0 ; transformed white point

Package

dufy/core

Source

cat.lisp (file)

Function: gen-delinearizer GAMMA

Returns a gamma-correction function for a given gamma value. You shouldn’t call the returned function directly as it is not safe. Use DELINEARIZE instead.

Package

dufy/core

Source

rgb.lisp (file)

Function: gen-illum-d-spectrum TEMPERATURE &key RECTIFY

Generates the spectrum of the illuminant series D for a given
temperature (from 300 nm to 830 nm with band-width 1 nm). If RECTIFY is true, the temperature multiplied by 1.4388/1.438 is used instead. (roughly 6504K for 6500K, etc.)

Package

dufy/core

Source

spectrum.lisp (file)

Function: gen-linearizer GAMMA

Returns a linearization function for a given gamma value. You shouldn’t call the returned function directly as it is not safe. Use LINEARIZE instead.

Package

dufy/core

Source

rgb.lisp (file)

Function: gen-rgbspace-changer FROM-RGBSPACE TO-RGBSPACE &key TARGET CAT

Returns a function for changing RGB working space.

(funcall (gen-rgbspace-changer +srgb+ +adobe+ :target :rgb) 0 1 0) ;; => 0.5649506908657044d0
;; 1.0d0
;; 0.2344342037422755d0
;; change from sRGB to Adobe RGB.

TARGET ::= :LRGB | :RGB | :QRGB | :RGBPACK

Note about clamping:
LRGB case: no clamping;
RGB case: no clamping;
QRGB case: with clamping;
RGBPACK case: with clamping.

Package

dufy/core

Source

cat.lisp (file)

Function: gen-spectrum SPECTRUM-SEQ &optional BEGIN-WL END-WL

GEN-SPECTRUM returns a spectral power distribution
function, #’(lambda (wavelength-nm) ...), which interpolates SPECTRUM-SEQ linearly.

Note: SPECTRUM-SEQ must be a sequence of double-float. If the type of SPECTRUM-SEQ is (simple-array double-float (*)), it is not copied but referenced, otherwise it is copied by (coerce spectrum-seq ’(simple-array double-float (*))).

Package

dufy/core

Source

spectrum.lisp (file)

Function: hpluv-to-lchuv HUV PSAT LSTAR
Package

dufy/hsluv

Source

hsluv.lisp (file)

Function: hpluv-to-lrgb HUV PSAT LSTAR &key RGBSPACE &aux ILLUMINANT
Package

dufy/hsluv

Source

hsluv.lisp (file)

Function: hpluv-to-qrgb HUV PSAT LSTAR &key RGBSPACE CLAMP &aux ILLUMINANT
Package

dufy/hsluv

Source

hsluv.lisp (file)

Function: hpluv-to-rgb HUV PSAT LSTAR &key RGBSPACE &aux ILLUMINANT
Package

dufy/hsluv

Source

hsluv.lisp (file)

Function: hpluv-to-rgbpack HUV PSAT LSTAR &key RGBSPACE &aux ILLUMINANT CLAMP
Package

dufy/hsluv

Source

hsluv.lisp (file)

Function: hpluv-to-xyz HUV PSAT LSTAR &key ILLUMINANT
Package

dufy/hsluv

Source

hsluv.lisp (file)

Function: hsl-to-lrgb HUE SAT LUM &key RGBSPACE
Package

dufy/core

Source

rgb.lisp (file)

Function: hsl-to-qrgb HUE SAT LUM &key RGBSPACE CLAMP
Package

dufy/core

Source

rgb.lisp (file)

Function: hsl-to-rgb HUE SAT LUM

Non-normal RGB space is also accepted, though it depends on the situation whether the returned values are meaningful.

Package

dufy/core

Source

rgb.lisp (file)

Function: hsl-to-rgbpack HUE SAT LUM &key RGBSPACE &aux CLAMP
Package

dufy/core

Source

rgb.lisp (file)

Function: hsl-to-xyz HUE SAT LUM &key RGBSPACE &aux ILLUMINANT
Package

dufy/core

Source

rgb.lisp (file)

Function: hsluv-to-lchuv HUV SAT LSTAR
Package

dufy/hsluv

Source

hsluv.lisp (file)

Function: hsluv-to-lrgb HUV SAT LSTAR &key RGBSPACE &aux ILLUMINANT
Package

dufy/hsluv

Source

hsluv.lisp (file)

Function: hsluv-to-qrgb HUV SAT LSTAR &key RGBSPACE CLAMP &aux ILLUMINANT
Package

dufy/hsluv

Source

hsluv.lisp (file)

Function: hsluv-to-rgb HUV SAT LSTAR &key RGBSPACE &aux ILLUMINANT
Package

dufy/hsluv

Source

hsluv.lisp (file)

Function: hsluv-to-rgbpack HUV SAT LSTAR &key RGBSPACE &aux ILLUMINANT CLAMP
Package

dufy/hsluv

Source

hsluv.lisp (file)

Function: hsluv-to-xyz HUV SAT LSTAR &key ILLUMINANT
Package

dufy/hsluv

Source

hsluv.lisp (file)

Function: hsv-to-lrgb HUE SAT VAL &key RGBSPACE
Package

dufy/core

Source

rgb.lisp (file)

Function: hsv-to-qrgb HUE SAT VAL &key RGBSPACE CLAMP
Package

dufy/core

Source

rgb.lisp (file)

Function: hsv-to-rgb HUE SAT VAL

Non-normal RGB space is also accepted, though it depends on the situation whether the returned values are meaningful.

Package

dufy/core

Source

rgb.lisp (file)

Function: hsv-to-rgbpack HUE SAT VAL &key RGBSPACE &aux CLAMP
Package

dufy/core

Source

rgb.lisp (file)

Function: hsv-to-xyz HUE SAT VAL &key RGBSPACE &aux ILLUMINANT
Package

dufy/core

Source

rgb.lisp (file)

Function: illuminant-no-spd-p ILLUMINANT
Package

dufy/core

Source

spectrum.lisp (file)

Function: illuminant-observer INSTANCE
Function: (setf illuminant-observer) VALUE INSTANCE
Package

dufy/core

Source

spectrum.lisp (file)

Function: illuminant-spectrum INSTANCE
Function: (setf illuminant-spectrum) VALUE INSTANCE
Package

dufy/core

Source

spectrum.lisp (file)

Function: illuminant-x INSTANCE
Function: (setf illuminant-x) VALUE INSTANCE
Package

dufy/core

Source

spectrum.lisp (file)

Function: illuminant-xy ILLUMINANT

Returns the xy chromacity coordinates of a given illuminant.

Package

dufy/core

Source

spectrum.lisp (file)

Function: illuminant-z INSTANCE
Function: (setf illuminant-z) VALUE INSTANCE
Package

dufy/core

Source

spectrum.lisp (file)

Function: invert-matrix MAT
Package

dufy/internal

Source

matrix.lisp (file)

Function: lab-deltae00 L1 A1 B1 L2 A2 B2

CIEDE2000.

Tested with the test set by Sharma-Wu-Dalal. See "The CIEDE2000 Color-Difference Formula: Implementation Notes, Supplementary Test Data, and Mathematical Observations", 2004.

Package

dufy/core

Source

deltae.lisp (file)

Function: lab-deltae94 L1 A1 B1 L2 A2 B2 &key APPLICATION

CIE 1994.
APPLICATION ::= :graphic-arts | :textiles

Package

dufy/core

Source

deltae.lisp (file)

Function: lab-deltaeab L1 A1 B1 L2 A2 B2

CIE 1976. Euclidean distance in L*a*b* space.

Package

dufy/core

Source

deltae.lisp (file)

Function: lab-deltaecmc L1 A1 B1 L2 A2 B2 &key L-FACTOR C-FACTOR

CMC l:c

Package

dufy/core

Source

deltae.lisp (file)

Function: lab-to-lchab LSTAR ASTAR BSTAR
Package

dufy/core

Source

lab-and-luv.lisp (file)

Function: lab-to-xyz LSTAR ASTAR BSTAR &key ILLUMINANT
Package

dufy/core

Source

lab-and-luv.lisp (file)

Function: lchab-to-lab LSTAR CSTARAB HAB
Package

dufy/core

Source

lab-and-luv.lisp (file)

Function: lchab-to-mhvc-illum-c LSTAR CSTARAB HAB &key MAX-ITERATION IF-REACH-MAX FACTOR THRESHOLD &aux ILLUMINANT

Is an inverter of MHVC-TO-LCHAB-ILLUM-C with a simple iteration algorithm, which is almost same as the one in "An Open-Source Inversion Algorithm for the Munsell Renotation" by Paul Centore, 2011:

V := LSTAR-TO-MUNSELL-VALUE(L*);
C_0 := C*_ab / 5.5;
H_0 := h_ab / 9;
C_(n+1) := C_n + FACTOR * ΔC_n;
H_(n+1) := H_n + FACTOR * ΔH_n;

Δ(H_n) and Δ(C_n) are internally calculated at every step. This function returns Munsell HVC values if C_0 <= THRESHOLD or if V <= THRESHOLD or when max(Δ(H_n), Δ(C_n)) falls below THRESHOLD.

IF-REACH-MAX specifies the action to be taken if the loop reaches the MAX-ITERATION as follows:

:error: Error of type DUFY:LARGE-APPROXIMATION-ERROR is signaled. :return40: Three 40d0s are returned.
:raw: Just returns HVC as it is.

Package

dufy/munsell

Source

invert.lisp (file)

Function: lchab-to-munsell-illum-c LSTAR CSTARAB HAB &key MAX-ITERATION IF-REACH-MAX FACTOR THRESHOLD DIGITS &aux ILLUMINANT

Illuminant C

Package

dufy/munsell

Source

invert.lisp (file)

Function: lchab-to-xyz LSTAR CSTARAB HAB &key ILLUMINANT
Package

dufy/core

Source

lab-and-luv.lisp (file)

Function: lchuv-to-hpluv LSTAR CSTARUV HUV
Package

dufy/hsluv

Source

hsluv.lisp (file)

Function: lchuv-to-hsluv LSTAR CSTARUV HUV
Package

dufy/hsluv

Source

hsluv.lisp (file)

Function: lchuv-to-luv LSTAR CSTARUV HUV
Package

dufy/core

Source

lab-and-luv.lisp (file)

Function: lchuv-to-xyz LSTAR CSTARUV HUV &key ILLUMINANT
Package

dufy/core

Source

lab-and-luv.lisp (file)

Function: linearize X &key RGBSPACE
Package

dufy/core

Source

rgb.lisp (file)

Function: lms-to-xyz L M S &key ILLUMINANT CAT

ILLUMINANT can be NIL and in that case the transform is virtually equivalent to that of illuminant E.

Package

dufy/core

Source

cat.lisp (file)

Function: lrgb-out-of-gamut-p LR LG LB &key RGBSPACE THRESHOLD

Returns true if at least one of LR, LG, and LB is outside the interval [RGBSPACE-LMIN - THRESHOLD, RGBSPACE-LMAX + THRESHOLD].

Package

dufy/core

Source

rgb.lisp (file)

Function: lrgb-to-hpluv LR LG LB &key RGBSPACE &aux ILLUMINANT
Package

dufy/hsluv

Source

hsluv.lisp (file)

Function: lrgb-to-hsl LR LG LB &key RGBSPACE
Package

dufy/core

Source

rgb.lisp (file)

Function: lrgb-to-hsluv LR LG LB &key RGBSPACE &aux ILLUMINANT
Package

dufy/hsluv

Source

hsluv.lisp (file)

Function: lrgb-to-hsv LR LG LB &key RGBSPACE
Package

dufy/core

Source

rgb.lisp (file)

Function: lrgb-to-qrgb LR LG LB &key RGBSPACE CLAMP
Package

dufy/core

Source

rgb.lisp (file)

Function: lrgb-to-rgb LR LG LB &key RGBSPACE
Package

dufy/core

Source

rgb.lisp (file)

Function: lrgb-to-rgbpack LR LG LB &key RGBSPACE &aux CLAMP
Package

dufy/core

Source

rgb.lisp (file)

Function: lrgb-to-xyz LR LG LB &key RGBSPACE &aux ILLUMINANT
Package

dufy/core

Source

rgb.lisp (file)

Function: lstar-to-munsell-value LSTAR
Package

dufy/munsell

Source

fundamental.lisp (file)

Function: lstar-to-y LSTAR

L* (of L*a*b*) to Y (of XYZ)

Package

dufy/core

Source

lab-and-luv.lisp (file)

Function: luv-to-lchuv LSTAR USTAR VSTAR
Package

dufy/core

Source

lab-and-luv.lisp (file)

Function: luv-to-xyz LSTAR USTAR VSTAR &key ILLUMINANT
Package

dufy/core

Source

lab-and-luv.lisp (file)

Function: make-cat MAT

Generates a (linear) CAT model from a 3*3 matrix.

Package

dufy/core

Source

cat.lisp (file)

Function: make-illuminant &key X Z SPECTRUM OBSERVER COMPILE-TIME BEGIN-WL END-WL BAND

Generates an illuminant from a spectral distribution or a white point. If SPECTRUM is nil, the returned illuminant contains only a white point. If X and Z are nil, on the other hand, the white point (X, 1d0, Z) is automatically calculated from the spectrum. You can also specify the both though you should note that no error occurs even if the given white point and SPD contradicts to each other.

(make-illuminant :x 1.0 :z 1.0)
;; => illuminant without SPD

(make-illuminant :x 1.0 :z 1.0 :spectrum #’flat-spectrum)
(make-illuminant :spectrum #’flat-spectrum)
;; => (almost same) illuminants with SPD

(make-illuminant :x 0.9 :z 1.1 :spectrum #’flat-spectrum)
;; => (valid but meaningless) illuminant with SPD

If X and Y are NIL and COMPILE-TIME is T, the white point is
calculated at compile time. (Avoid side effects in this case as the parameters are EVALed.)

Package

dufy/core

Source

spectrum.lisp (file)

Function: make-mb-line &key (SLOPE SLOPE) (INTERCEPT INTERCEPT)
Package

dufy/internal

Source

mb-line.lisp (file)

Function: make-observer CMF-TABLE &optional BEGIN-WL END-WL

Generates an observer object based on CMF arrays, which must be (SIMPLE-ARRAY DOUBLE-FLOAT (* 3)). The response outside the interval [begin-wl, end-wl] is regarded as 0.

Package

dufy/core

Source

spectrum.lisp (file)

Function: make-rgbspace XR YR XG YG XB YB &key ILLUMINANT LMIN LMAX LINEARIZER DELINEARIZER BIT-PER-CHANNEL FORCE-NORMAL

xr, yr, xg, yg, xb, yb := primary coordinates in the xy plane.
[lmin, lmax] := range of linear values ([0, 1] typically).

LINEARIZER and DELINEARIZER must be (FUNCTION * (VALUES DOUBLE-FLOAT &OPTIONAL)).

If FORCE-NORMAL is T, the nominal range of gamma-corrected values is forcibly set to [0d0, 1d0]. This option is used to avoid the computed range being e.g. [0d0, 0.9999999999999999d0].

Package

dufy/core

Source

rgb.lisp (file)

Function: max-chroma-in-mrd HUE40 VALUE &key USE-DARK

Returns the largest chroma in the Munsell Renotation Data (all.dat) for a given hue and value. If you want to ignore the data for value = 0.2, 0.4, 0.6, or 0.8, give NIL to USE-DARK(, though it is maybe only for development).

Package

dufy/munsell

Source

fundamental.lisp (file)

Function: mb-line-distance-from-origin LINE

Return the distance from the line to the origin.

Package

dufy/internal

Source

mb-line.lisp (file)

Function: mb-line-ray-intersect-distance THETA LINE

Return the (signed) distance at which a ray, starting at the origin and travelling at angle THETA, intersects LINE.

Package

dufy/internal

Source

mb-line.lisp (file)

Function: mhvc-out-of-mrd-p HUE40 VALUE CHROMA

Checks if Munsell HVC is out of the Munsell Renotation data.

Package

dufy/munsell

Source

fundamental.lisp (file)

Function: mhvc-to-lchab-illum-c HUE40 VALUE CHROMA &aux ILLUMINANT

Illuminant C.

Package

dufy/munsell

Source

convert.lisp (file)

Function: mhvc-to-munsell HUE40 VALUE CHROMA &key DIGITS
Package

dufy/munsell

Source

fundamental.lisp (file)

Function: mhvc-to-xyz HUE40 VALUE CHROMA

Illuminant D65.
This converter involves the Bradford transformation from illuminant C to illuminant D65.

Package

dufy/munsell

Source

convert.lisp (file)

Function: mhvc-to-xyz-illum-c HUE40 VALUE CHROMA &aux ILLUMINANT

Illuminant C.

Package

dufy/munsell

Source

convert.lisp (file)

Function: multiply-mat-mat MAT1 MAT2
Package

dufy/internal

Source

matrix.lisp (file)

Function: multiply-mat-vec MATRIX X Y Z
Package

dufy/internal

Source

matrix.lisp (file)

Function: multiply-matrices MAT1 &rest MATS
Package

dufy/internal

Source

matrix.lisp (file)

Function: munsell-out-of-mrd-p MUNSELLSPEC
Package

dufy/munsell

Source

fundamental.lisp (file)

Function: munsell-to-lchab-illum-c MUNSELLSPEC &aux ILLUMINANT

Illuminant C.

Package

dufy/munsell

Source

convert.lisp (file)

Function: munsell-to-mhvc MUNSELLSPEC

Usage Example:
(dufy:munsell-to-mhvc "0.02RP 0.9/3.5")
;; => 36.008d0
;; 0.9d0
;; 3.5d0

Many other notations of numbers are acceptable; an ugly specification as follows are also available:

(dufy:munsell-to-mhvc "2d-2RP .9/ #x0ffffff")
;; => 36.008d0
;; 0.9d0
;; 1.6777215d7

However, the capital letters and ’/’ are reserved:

(dufy:munsell-to-mhvc "2D-2RP 9/10 / #X0FFFFFF")
;; => ERROR,

Package

dufy/munsell

Source

fundamental.lisp (file)

Function: munsell-to-xyz MUNSELLSPEC

Illuminant D65.

Package

dufy/munsell

Source

convert.lisp (file)

Function: munsell-to-xyz-illum-c MUNSELLSPEC &aux ILLUMINANT

Illuminant C.

Package

dufy/munsell

Source

convert.lisp (file)

Function: munsell-value-to-lstar V

Converts Munsell value to L*, whose nominal range is [0, 100].

Package

dufy/munsell

Source

fundamental.lisp (file)

Function: munsell-value-to-y V

Converts Munsell value to Y, whose nominal range is [0, 1]. The formula is based on ASTM D1535-08e1. Note that this function does no clamping even if V is outside the interval [0, 10].

Package

dufy/munsell

Source

fundamental.lisp (file)

Function: nearly-equal THRESHOLD LST1 &rest LSTS

THRESHOLD is acceptable absolute error.

Package

dufy/internal

Source

arithmetic.lisp (file)

Function: nearly<= THRESHOLD NUMBER &rest MORE-NUMBERS
Package

dufy/internal

Source

arithmetic.lisp (file)

Function: nearly= THRESHOLD NUMBER &rest MORE-NUMBERS

THRESHOLD is acceptable absolute error.

Package

dufy/internal

Source

arithmetic.lisp (file)

Function: observer-begin-wl INSTANCE
Function: (setf observer-begin-wl) VALUE INSTANCE
Package

dufy/core

Source

spectrum.lisp (file)

Function: observer-cmf INSTANCE
Function: (setf observer-cmf) VALUE INSTANCE
Package

dufy/core

Source

spectrum.lisp (file)

Function: observer-cmf-x INSTANCE
Function: (setf observer-cmf-x) VALUE INSTANCE
Package

dufy/core

Source

spectrum.lisp (file)

Function: observer-cmf-y INSTANCE
Function: (setf observer-cmf-y) VALUE INSTANCE
Package

dufy/core

Source

spectrum.lisp (file)

Function: observer-cmf-z INSTANCE
Function: (setf observer-cmf-z) VALUE INSTANCE
Package

dufy/core

Source

spectrum.lisp (file)

Function: observer-end-wl INSTANCE
Function: (setf observer-end-wl) VALUE INSTANCE
Package

dufy/core

Source

spectrum.lisp (file)

Function: optimal-spectrum-peak WAVELENGTH-NM &optional WL1 WL2

Spectrum function of optimal colors: f(x) = 1d0 if wl1 <= x <= wl2, f(x) = 0d0 otherwise.

Package

dufy/core

Source

spectrum.lisp (file)

Function: optimal-spectrum-trough WAVELENGTH-NM &optional WL1 WL2

Spectrum function of optimal colors: f(x) = 1d0 if x <= wl2 or wl1 <= x, f(x) = 0d0 otherwise.

Package

dufy/core

Source

spectrum.lisp (file)

Function: print-make-array VAR-NAME ARRAY &optional STREAM DECLARATION LOAD-TIME-VALUE

Prints a form like (defparameter VAR-NAME (make-array ...)).

Package

dufy/internal

Source

utilities.lisp (file)

Function: qrgb-deltae00 QR1 QG1 QB1 QR2 QG2 QB2 &key RGBSPACE
Package

dufy/core

Source

deltae.lisp (file)

Function: qrgb-deltae94 QR1 QG1 QB1 QR2 QG2 QB2 &key RGBSPACE APPLICATION
Package

dufy/core

Source

deltae.lisp (file)

Function: qrgb-deltaeab QR1 QG1 QB1 QR2 QG2 QB2 &key RGBSPACE
Package

dufy/core

Source

deltae.lisp (file)

Function: qrgb-deltaecmc QR1 QG1 QB1 QR2 QG2 QB2 &key RGBSPACE L-FACTOR C-FACTOR
Package

dufy/core

Source

deltae.lisp (file)

Function: qrgb-out-of-gamut-p QR QG QB &key RGBSPACE THRESHOLD
Package

dufy/core

Source

rgb.lisp (file)

Function: qrgb-to-hpluv QR QG QB &key RGBSPACE &aux ILLUMINANT
Package

dufy/hsluv

Source

hsluv.lisp (file)

Function: qrgb-to-hsl QR QG QB &key RGBSPACE
Package

dufy/core

Source

rgb.lisp (file)

Function: qrgb-to-hsluv QR QG QB &key RGBSPACE &aux ILLUMINANT
Package

dufy/hsluv

Source

hsluv.lisp (file)

Function: qrgb-to-hsv QR QG QB &key RGBSPACE
Package

dufy/core

Source

rgb.lisp (file)

Function: qrgb-to-lrgb QR QG QB &key RGBSPACE
Package

dufy/core

Source

rgb.lisp (file)

Function: qrgb-to-rgb QR QG QB &key RGBSPACE
Package

dufy/core

Source

rgb.lisp (file)

Function: qrgb-to-rgbpack QR QG QB &key RGBSPACE &aux CLAMP
Package

dufy/core

Source

rgb.lisp (file)

Function: qrgb-to-xyz QR QG QB &key RGBSPACE &aux ILLUMINANT
Package

dufy/core

Source

rgb.lisp (file)

Function: quantize X &key RGBSPACE CLAMP

Quantizes an RGB value to a QRGB value

Package

dufy/core

Source

rgb.lisp (file)

Function: radian-to-degree RADIAN
Package

dufy/internal

Source

arithmetic.lisp (file)

Function: rgb-out-of-gamut-p R G B &key RGBSPACE THRESHOLD

Returns true if at least one of R, G, and B is outside the interval [RGBSPACE-MIN - THRESHOLD, RGBSPACE-MAX + THRESHOLD].

Package

dufy/core

Source

rgb.lisp (file)

Function: rgb-to-hpluv R G B &key RGBSPACE &aux ILLUMINANT
Package

dufy/hsluv

Source

hsluv.lisp (file)

Function: rgb-to-hsl R G B

Non-normal RGB space is also accepted, though it depends on the situation whether the returned values are meaningful.

Package

dufy/core

Source

rgb.lisp (file)

Function: rgb-to-hsluv R G B &key RGBSPACE &aux ILLUMINANT
Package

dufy/hsluv

Source

hsluv.lisp (file)

Function: rgb-to-hsv R G B

Non-normal RGB space is also accepted, though it depends on the situation whether the returned values are meaningful.

Package

dufy/core

Source

rgb.lisp (file)

Function: rgb-to-lrgb R G B &key RGBSPACE
Package

dufy/core

Source

rgb.lisp (file)

Function: rgb-to-qrgb R G B &key RGBSPACE CLAMP

Quantizes RGB values from [RGBSPACE-MIN, RGBSPACE-MAX] ([0, 1] typically) to 0, 1, ..., RGBSPACE-QMAX (255 typically), though it accepts all the real values and properly processes them as out-of-gamut color.

Package

dufy/core

Source

rgb.lisp (file)

Function: rgb-to-rgbpack R G B &key RGBSPACE &aux CLAMP
Package

dufy/core

Source

rgb.lisp (file)

Function: rgb-to-xyz R G B &key RGBSPACE &aux ILLUMINANT
Package

dufy/core

Source

rgb.lisp (file)

Function: rgbpack-to-hpluv INT &key RGBSPACE &aux ILLUMINANT
Package

dufy/hsluv

Source

hsluv.lisp (file)

Function: rgbpack-to-hsl INT &key RGBSPACE
Package

dufy/core

Source

rgb.lisp (file)

Function: rgbpack-to-hsluv INT &key RGBSPACE &aux ILLUMINANT
Package

dufy/hsluv

Source

hsluv.lisp (file)

Function: rgbpack-to-hsv INT &key RGBSPACE
Package

dufy/core

Source

rgb.lisp (file)

Function: rgbpack-to-lrgb INT &key RGBSPACE
Package

dufy/core

Source

rgb.lisp (file)

Function: rgbpack-to-qrgb INT &key RGBSPACE

Decodes a packed RGB value, whose type depends on RGBSPACE but is typically unsigned 24-bit integer.

It is guaranteed that this converter can correctly process a packed RGBA value if its order is ARGB.

Package

dufy/core

Source

rgb.lisp (file)

Function: rgbpack-to-rgb INT &key RGBSPACE
Package

dufy/core

Source

rgb.lisp (file)

Function: rgbpack-to-xyz INT &key RGBSPACE &aux ILLUMINANT
Package

dufy/core

Source

rgb.lisp (file)

Function: rgbspace-bit-per-channel INSTANCE
Function: (setf rgbspace-bit-per-channel) VALUE INSTANCE
Package

dufy/core

Source

rgb.lisp (file)

Function: rgbspace-delinearizer INSTANCE
Function: (setf rgbspace-delinearizer) VALUE INSTANCE
Package

dufy/core

Source

rgb.lisp (file)

Function: rgbspace-from-xyz-matrix INSTANCE
Function: (setf rgbspace-from-xyz-matrix) VALUE INSTANCE
Package

dufy/core

Source

rgb.lisp (file)

Function: rgbspace-illuminant INSTANCE
Function: (setf rgbspace-illuminant) VALUE INSTANCE
Package

dufy/core

Source

rgb.lisp (file)

Function: rgbspace-linearizer INSTANCE
Function: (setf rgbspace-linearizer) VALUE INSTANCE
Package

dufy/core

Source

rgb.lisp (file)

Function: rgbspace-lmax INSTANCE
Function: (setf rgbspace-lmax) VALUE INSTANCE
Package

dufy/core

Source

rgb.lisp (file)

Function: rgbspace-lmin INSTANCE
Function: (setf rgbspace-lmin) VALUE INSTANCE
Package

dufy/core

Source

rgb.lisp (file)

Function: rgbspace-max INSTANCE
Function: (setf rgbspace-max) VALUE INSTANCE
Package

dufy/core

Source

rgb.lisp (file)

Function: rgbspace-min INSTANCE
Function: (setf rgbspace-min) VALUE INSTANCE
Package

dufy/core

Source

rgb.lisp (file)

Function: rgbspace-normal INSTANCE
Function: (setf rgbspace-normal) VALUE INSTANCE
Package

dufy/core

Source

rgb.lisp (file)

Function: rgbspace-qmax INSTANCE
Function: (setf rgbspace-qmax) VALUE INSTANCE
Package

dufy/core

Source

rgb.lisp (file)

Function: rgbspace-to-xyz-matrix INSTANCE
Function: (setf rgbspace-to-xyz-matrix) VALUE INSTANCE
Package

dufy/core

Source

rgb.lisp (file)

Function: rgbspace-xb INSTANCE
Function: (setf rgbspace-xb) VALUE INSTANCE
Package

dufy/core

Source

rgb.lisp (file)

Function: rgbspace-xg INSTANCE
Function: (setf rgbspace-xg) VALUE INSTANCE
Package

dufy/core

Source

rgb.lisp (file)

Function: rgbspace-xr INSTANCE
Function: (setf rgbspace-xr) VALUE INSTANCE
Package

dufy/core

Source

rgb.lisp (file)

Function: rgbspace-yb INSTANCE
Function: (setf rgbspace-yb) VALUE INSTANCE
Package

dufy/core

Source

rgb.lisp (file)

Function: rgbspace-yg INSTANCE
Function: (setf rgbspace-yg) VALUE INSTANCE
Package

dufy/core

Source

rgb.lisp (file)

Function: rgbspace-yr INSTANCE
Function: (setf rgbspace-yr) VALUE INSTANCE
Package

dufy/core

Source

rgb.lisp (file)

Function: spectrum-to-xyz SPECTRUM &key ILLUMINANT BEGIN-WL END-WL BAND

Computes the XYZ values of SPECTRUM in reflective or transmissive case. The function SPECTRUM, a spectral reflectance, must be defined at least in [BEGIN-WL, END-WL]; the SPECTRUM is called for BEGIN-WL, BEGIN-WL + BAND, BEGIN-WL + 2*BAND, ..., BEGIN-WL + n*BAND (<= END-WL).

Package

dufy/core

Source

xyz.lisp (file)

Function: square X
Package

dufy/internal

Source

arithmetic.lisp (file)

Function: xyy-to-xyz SMALL-X SMALL-Y Y

Converts xyY to XYZ. The nominal range of Y is [0, 1], though all real values are accepted.

Package

dufy/core

Source

xyz.lisp (file)

Function: xyz-deltae00 X1 Y1 Z1 X2 Y2 Z2 &key ILLUMINANT
Package

dufy/core

Source

deltae.lisp (file)

Function: xyz-deltae94 X1 Y1 Z1 X2 Y2 Z2 &key ILLUMINANT APPLICATION
Package

dufy/core

Source

deltae.lisp (file)

Function: xyz-deltaeab X1 Y1 Z1 X2 Y2 Z2 &key ILLUMINANT
Package

dufy/core

Source

deltae.lisp (file)

Function: xyz-deltaecmc X1 Y1 Z1 X2 Y2 Z2 &key ILLUMINANT L-FACTOR C-FACTOR
Package

dufy/core

Source

deltae.lisp (file)

Function: xyz-to-hpluv X Y Z &key ILLUMINANT
Package

dufy/hsluv

Source

hsluv.lisp (file)

Function: xyz-to-hsl X Y Z &key RGBSPACE &aux ILLUMINANT
Package

dufy/core

Source

rgb.lisp (file)

Function: xyz-to-hsluv X Y Z &key ILLUMINANT
Package

dufy/hsluv

Source

hsluv.lisp (file)

Function: xyz-to-hsv X Y Z &key RGBSPACE &aux ILLUMINANT
Package

dufy/core

Source

rgb.lisp (file)

Function: xyz-to-lab X Y Z &key ILLUMINANT
Package

dufy/core

Source

lab-and-luv.lisp (file)

Function: xyz-to-lchab X Y Z &key ILLUMINANT
Package

dufy/core

Source

lab-and-luv.lisp (file)

Function: xyz-to-lchuv X Y Z &key ILLUMINANT
Package

dufy/core

Source

lab-and-luv.lisp (file)

Function: xyz-to-lms X Y Z &key ILLUMINANT CAT

ILLUMINANT can be NIL and in that case the transform is virtually equivalent to that of illuminant E.

Package

dufy/core

Source

cat.lisp (file)

Function: xyz-to-lrgb X Y Z &key RGBSPACE &aux ILLUMINANT
Package

dufy/core

Source

rgb.lisp (file)

Function: xyz-to-luv X Y Z &key ILLUMINANT
Package

dufy/core

Source

lab-and-luv.lisp (file)

Function: xyz-to-mhvc X Y Z &key MAX-ITERATION IF-REACH-MAX FACTOR THRESHOLD

Illuminant D65.
This converter involves the Bradford transformation from illuminant D65 to illuminant C.

Package

dufy/munsell

Source

invert.lisp (file)

Function: xyz-to-mhvc-illum-c X Y Z &key MAX-ITERATION IF-REACH-MAX FACTOR THRESHOLD &aux ILLUMINANT

Illuminant C.

Package

dufy/munsell

Source

invert.lisp (file)

Function: xyz-to-munsell X Y Z &key MAX-ITERATION IF-REACH-MAX FACTOR THRESHOLD DIGITS

Illuminant D65.
This converter involves the Bradford transformation from illuminant D65 to illuminant C.

Package

dufy/munsell

Source

invert.lisp (file)

Function: xyz-to-munsell-illum-c X Y Z &key MAX-ITERATION IF-REACH-MAX FACTOR THRESHOLD DIGITS &aux ILLUMINANT

Illuminant C.

Package

dufy/munsell

Source

invert.lisp (file)

Function: xyz-to-qrgb X Y Z &key RGBSPACE CLAMP &aux ILLUMINANT
Package

dufy/core

Source

rgb.lisp (file)

Function: xyz-to-rgb X Y Z &key RGBSPACE &aux ILLUMINANT
Package

dufy/core

Source

rgb.lisp (file)

Function: xyz-to-rgbpack X Y Z &key RGBSPACE &aux ILLUMINANT CLAMP
Package

dufy/core

Source

rgb.lisp (file)

Function: xyz-to-spectrum X Y Z &key ILLUMINANT

Converts XYZ to spectrum, which is, of course, a spectrum among many and may contain a negative spectral density.

Package

dufy/core

Source

xyz.lisp (file)

Function: xyz-to-xyy X Y Z

Converts XYZ to xyY. The nominal range of Y is [0, 1], though all real values are accepted.

Package

dufy/core

Source

xyz.lisp (file)

Function: y-to-munsell-value Y

Interpolates the inversion table of MUNSELL-VALUE-TO-Y linearly, whose band width is 1e-3. It is guaranteed that the round-trip error, (abs (- (y (munsell-value-to-y (y-to-munsell-value y))))), is smaller than 1e-5.

Package

dufy/munsell

Source

fundamental.lisp (file)


Next: , Previous: , Up: Exported definitions   [Contents][Index]

6.1.6 Conditions

Condition: invalid-mhvc-error ()
Package

dufy/munsell

Source

fundamental.lisp (file)

Direct superclasses

simple-error (condition)

Direct methods
Direct slots
Slot: value
Initargs

:value

Initform

(quote 0.0d0)

Readers

cond-value (generic function)

Writers

(setf cond-value) (generic function)

Slot: chroma
Initargs

:chroma

Initform

(quote 0.0d0)

Readers

cond-chroma (generic function)

Writers

(setf cond-chroma) (generic function)

Condition: large-approximation-error ()
Package

dufy/munsell

Source

invert.lisp (file)

Direct superclasses

arithmetic-error (condition)

Direct methods
Direct slots
Slot: message
Initargs

:message

Initform

(quote "couldn't achieve the required accuracy.")

Readers

cond-message (generic function)

Writers

(setf cond-message) (generic function)

Condition: munsellspec-parse-error ()
Package

dufy/munsell

Source

fundamental.lisp (file)

Direct superclasses

parse-error (condition)

Direct methods
Direct slots
Slot: spec
Initargs

:spec

Initform

(quote nil)

Readers

cond-spec (generic function)

Writers

(setf cond-spec) (generic function)

Condition: no-spd-error ()
Package

dufy/core

Source

spectrum.lisp (file)

Direct superclasses

simple-error (condition)

Direct methods
Direct slots
Slot: illuminant
Initargs

:illuminant

Initform

(quote nil)

Readers

cond-illuminant (generic function)

Writers

(setf cond-illuminant) (generic function)


Next: , Previous: , Up: Exported definitions   [Contents][Index]

6.1.7 Structures

Structure: cat ()

Expresses a model of chromatic adaptation transformation. Currently only linear models are available.

Package

dufy/core

Source

cat.lisp (file)

Direct superclasses

structure-object (structure)

Direct slots
Slot: matrix
Type

dufy/internal:matrix33

Initform

dufy/internal:+empty-matrix+

Readers

cat-matrix (function)

Writers

(setf cat-matrix) (function)

Slot: inv-matrix
Type

dufy/internal:matrix33

Initform

dufy/internal:+empty-matrix+

Readers

cat-inv-matrix (function)

Writers

(setf cat-inv-matrix) (function)

Structure: colorspace ()
Package

dufy/internal

Source

colorspace.lisp (file)

Direct superclasses

structure-object (structure)

Direct methods
  • documentation (method)
  • documentation (method)
Direct slots
Slot: name
Type

symbol

Readers

colorspace-name (function)

Writers

(setf colorspace-name) (function)

Slot: args
Type

list

Readers

colorspace-args (function)

Writers

(setf colorspace-args) (function)

Slot: arg-types
Type

list

Readers

colorspace-arg-types (function)

Writers

(setf colorspace-arg-types) (function)

Slot: return-types
Type

list

Readers

colorspace-return-types (function)

Writers

(setf colorspace-return-types) (function)

Slot: documentation
Type

(or null string)

Readers

colorspace-documentation (function)

Writers

(setf colorspace-documentation) (function)

Slot: neighbors
Type

list

Readers

colorspace-neighbors (function)

Writers

(setf colorspace-neighbors) (function)

Structure: functional ()

The functional here is e.g. color difference, luminance, or color temperature. If you define a functional for a color space with DEFINE-FUNCTIONAL, you can extend it to other color spaces with EXTEND-FUNCTIONAL.

Package

dufy/internal

Source

colorspace.lisp (file)

Direct superclasses

structure-object (structure)

Direct slots
Slot: fname
Type

symbol

Readers

functional-fname (function)

Writers

(setf functional-fname) (function)

Slot: term
Type

symbol

Readers

functional-term (function)

Writers

(setf functional-term) (function)

Slot: colorspace
Type

symbol

Readers

functional-colorspace (function)

Writers

(setf functional-colorspace) (function)

Slot: dimension
Type

(integer 1)

Initform

1

Readers

functional-dimension (function)

Writers

(setf functional-dimension) (function)

Slot: key-args
Type

list

Readers

functional-key-args (function)

Writers

(setf functional-key-args) (function)

Slot: allow-other-keys
Type

boolean

Readers

functional-allow-other-keys (function)

Writers

(setf functional-allow-other-keys) (function)

Slot: aux-args
Type

list

Readers

functional-aux-args (function)

Writers

(setf functional-aux-args) (function)

Structure: illuminant ()
Package

dufy/core

Source

spectrum.lisp (file)

Direct superclasses

structure-object (structure)

Direct slots
Slot: x
Type

double-float

Initform

1.0d0

Readers

illuminant-x (function)

Writers

(setf illuminant-x) (function)

Slot: z
Type

double-float

Initform

1.0d0

Readers

illuminant-z (function)

Writers

(setf illuminant-z) (function)

Slot: spectrum
Type

dufy/core::spectrum-function

Initform

(function dufy/core::empty-spectrum)

Readers

illuminant-spectrum (function)

Writers

(setf illuminant-spectrum) (function)

Slot: observer
Type

dufy/core:observer

Initform

dufy/core:+obs-cie1931+

Readers

illuminant-observer (function)

Writers

(setf illuminant-observer) (function)

Slot: to-spectrum-matrix
Type

(simple-array double-float (3 3))

Initform

dufy/internal:+empty-matrix+

Readers

illuminant-to-spectrum-matrix (function)

Writers

(setf illuminant-to-spectrum-matrix) (function)

Structure: observer ()

OBSERVER is a structure of color matching functions.

Package

dufy/core

Source

spectrum.lisp (file)

Direct superclasses

structure-object (structure)

Direct methods

print-object (method)

Direct slots
Slot: begin-wl
Type

(integer 0)

Initform

360

Readers

observer-begin-wl (function)

Writers

(setf observer-begin-wl) (function)

Slot: end-wl
Type

(integer 0)

Initform

830

Readers

observer-end-wl (function)

Writers

(setf observer-end-wl) (function)

Slot: cmf-table
Type

(simple-array double-float (* 3))

Readers

observer-cmf-table (function)

Writers

(setf observer-cmf-table) (function)

Slot: cmf-x
Type

dufy/core::spectrum-function

Readers

observer-cmf-x (function)

Writers

(setf observer-cmf-x) (function)

Slot: cmf-y
Type

dufy/core::spectrum-function

Readers

observer-cmf-y (function)

Writers

(setf observer-cmf-y) (function)

Slot: cmf-z
Type

dufy/core::spectrum-function

Readers

observer-cmf-z (function)

Writers

(setf observer-cmf-z) (function)

Slot: cmf
Type

(function * (values double-float double-float double-float &optional))

Readers

observer-cmf (function)

Writers

(setf observer-cmf) (function)

Structure: primary-converter ()

In the beginning is the primary converter, which is conceptually a directed edge that connects two color spaces. All other converters are generated by linking them. Currently primary converter can take only &key and &aux parameters other than required parameters.

Package

dufy/internal

Source

colorspace.lisp (file)

Direct superclasses

structure-object (structure)

Direct slots
Slot: from-colorspace
Type

symbol

Readers

primary-converter-from-colorspace (function)

Writers

(setf primary-converter-from-colorspace) (function)

Slot: to-colorspace
Type

symbol

Readers

primary-converter-to-colorspace (function)

Writers

(setf primary-converter-to-colorspace) (function)

Slot: name
Type

symbol

Readers

primary-converter-name (function)

Writers

(setf primary-converter-name) (function)

Slot: key-args
Type

list

Readers

primary-converter-key-args (function)

Writers

(setf primary-converter-key-args) (function)

Slot: allow-other-keys
Type

boolean

Readers

primary-converter-allow-other-keys (function)

Writers

(setf primary-converter-allow-other-keys) (function)

Slot: aux-args
Type

list

Readers

primary-converter-aux-args (function)

Writers

(setf primary-converter-aux-args) (function)

Structure: rgbspace ()

Is structure of RGB space including encoding characteristics. You shouldn’t write to any slots directly; instead MAKE-RGBSPACE and COPY-RGBSPACE are available.

Package

dufy/core

Source

rgb.lisp (file)

Direct superclasses

structure-object (structure)

Direct slots
Slot: xr
Type

double-float

Initform

0.0d0

Readers

rgbspace-xr (function)

Writers

(setf rgbspace-xr) (function)

Slot: yr
Type

double-float

Initform

0.0d0

Readers

rgbspace-yr (function)

Writers

(setf rgbspace-yr) (function)

Slot: xg
Type

double-float

Initform

0.0d0

Readers

rgbspace-xg (function)

Writers

(setf rgbspace-xg) (function)

Slot: yg
Type

double-float

Initform

0.0d0

Readers

rgbspace-yg (function)

Writers

(setf rgbspace-yg) (function)

Slot: xb
Type

double-float

Initform

0.0d0

Readers

rgbspace-xb (function)

Writers

(setf rgbspace-xb) (function)

Slot: yb
Type

double-float

Initform

0.0d0

Readers

rgbspace-yb (function)

Writers

(setf rgbspace-yb) (function)

Slot: illuminant
Type

dufy/core:illuminant

Initform

dufy/core:+illum-d65+

Readers

rgbspace-illuminant (function)

Writers

(setf rgbspace-illuminant) (function)

Slot: to-xyz-matrix
Type

dufy/internal:matrix33

Initform

dufy/internal:+identity-matrix+

Readers

rgbspace-to-xyz-matrix (function)

Writers

(setf rgbspace-to-xyz-matrix) (function)

Slot: from-xyz-matrix
Type

dufy/internal:matrix33

Initform

dufy/internal:+identity-matrix+

Readers

rgbspace-from-xyz-matrix (function)

Writers

(setf rgbspace-from-xyz-matrix) (function)

Slot: lmin
Type

double-float

Initform

0.0d0

Readers

rgbspace-lmin (function)

Writers

(setf rgbspace-lmin) (function)

Slot: lmax
Type

double-float

Initform

1.0d0

Readers

rgbspace-lmax (function)

Writers

(setf rgbspace-lmax) (function)

Slot: linearizer
Type

(function * (values double-float &optional))

Initform

(alexandria:rcurry (function float) 1.0d0)

Readers

rgbspace-linearizer (function)

Writers

(setf rgbspace-linearizer) (function)

Slot: delinearizer
Type

(function * (values double-float &optional))

Initform

(alexandria:rcurry (function float) 1.0d0)

Readers

rgbspace-delinearizer (function)

Writers

(setf rgbspace-delinearizer) (function)

Slot: min
Type

double-float

Initform

0.0d0

Readers

rgbspace-min (function)

Writers

(setf rgbspace-min) (function)

Slot: max
Type

double-float

Initform

1.0d0

Readers

rgbspace-max (function)

Writers

(setf rgbspace-max) (function)

Slot: length
Type

double-float

Initform

1.0d0

Readers

rgbspace-length (function)

Writers

(setf rgbspace-length) (function)

Slot: /length
Type

double-float

Initform

1.0d0

Readers

rgbspace-/length (function)

Writers

(setf rgbspace-/length) (function)

Slot: normal
Type

boolean

Initform

t

Readers

rgbspace-normal (function)

Writers

(setf rgbspace-normal) (function)

Slot: bit-per-channel
Type

(integer 1 62)

Initform

8

Readers

rgbspace-bit-per-channel (function)

Writers

(setf rgbspace-bit-per-channel) (function)

Slot: qmax
Type

(integer 1 4611686018427387903)

Initform

255

Readers

rgbspace-qmax (function)

Writers

(setf rgbspace-qmax) (function)

Slot: qmax-float
Type

double-float

Initform

255.0d0

Readers

rgbspace-qmax-float (function)

Writers

(setf rgbspace-qmax-float) (function)

Slot: length/qmax-float
Type

double-float

Initform

(float 1/255 1.0d0)

Readers

rgbspace-length/qmax-float (function)

Writers

(setf rgbspace-length/qmax-float) (function)

Slot: qmax-float/length
Type

double-float

Initform

255.0d0

Readers

rgbspace-qmax-float/length (function)

Writers

(setf rgbspace-qmax-float/length) (function)


Previous: , Up: Exported definitions   [Contents][Index]

6.1.8 Types

Type: matrix33 ()
Package

dufy/internal

Source

matrix.lisp (file)

Type: non-negative-non-large-double-float ()

The double-float that the Munsell converters accepts. It is in some cases less than MOST-POSITIVE-DOUBLE-FLOAT because of efficiency: e.g. on SBCL (64-bit) it is desirable that a float F
fulfills (TYPEP (ROUND F) ’(SIGNED-BYTE 64))

Package

dufy/munsell

Source

fundamental.lisp (file)

Type: tuple &rest REST

Analogy of the type specifier ‘cons’ and the function ‘list’: type (TUPLE A B C) is equivalent to the type (CONS A (CONS B (CONS C NULL))); the type TUPLE (or (TUPLE)) is equivalent to the type NULL.

Package

dufy/internal

Source

utilities.lisp (file)


Previous: , Up: Definitions   [Contents][Index]

6.2 Internal definitions


Next: , Previous: , Up: Internal definitions   [Contents][Index]

6.2.1 Constants

Constant: +cieluv-epsilon+
Package

dufy/hsluv

Source

hsluv.lisp (file)

Constant: +cieluv-kappa+
Package

dufy/hsluv

Source

hsluv.lisp (file)

Constant: +m-bounds+
Package

dufy/hsluv

Source

hsluv.lisp (file)


Next: , Previous: , Up: Internal definitions   [Contents][Index]

6.2.2 Special variables

Special Variable: *bit-length-of-most-positive-fixnum*
Package

dufy/munsell

Source

fundamental.lisp (file)

Special Variable: *colorspace-table*
Package

dufy/internal

Source

colorspace.lisp (file)

Special Variable: *functional-table*
Package

dufy/internal

Source

colorspace.lisp (file)

Special Variable: *primary-converter-table*
Package

dufy/internal

Source

colorspace.lisp (file)

Special Variable: +cmf-table-cie1931+
Package

dufy/core

Source

cmf-data.lisp (file)

Special Variable: +cmf-table-cie1964+
Package

dufy/core

Source

cmf-data.lisp (file)

Special Variable: +illum-c-table+
Package

dufy/core

Source

illuminants-data.lisp (file)

Special Variable: +inversed-mrd-table-hc+
Package

dufy/munsell

Source

inversed-renotation-data.lisp (file)

Special Variable: +inversed-mrd-table-v+
Package

dufy/munsell

Source

inversed-renotation-data.lisp (file)

Special Variable: +max-chroma-table+
Package

dufy/munsell

Source

renotation-data.lisp (file)

Special Variable: +max-chroma-table-dark+
Package

dufy/munsell

Source

renotation-data.lisp (file)

Special Variable: +mrd-table-ch+
Package

dufy/munsell

Source

renotation-data.lisp (file)

Special Variable: +mrd-table-ch-dark+
Package

dufy/munsell

Source

renotation-data.lisp (file)

Special Variable: +mrd-table-l+
Package

dufy/munsell

Source

renotation-data.lisp (file)

Special Variable: +mrd-table-l-dark+
Package

dufy/munsell

Source

renotation-data.lisp (file)

Special Variable: +s0-table+
Package

dufy/core

Source

spectrum.lisp (file)

Special Variable: +s1-table+
Package

dufy/core

Source

spectrum.lisp (file)

Special Variable: +s2-table+
Package

dufy/core

Source

spectrum.lisp (file)

Special Variable: +y-to-munsell-value-table+
Package

dufy/munsell

Source

y-to-value-data.lisp (file)


Next: , Previous: , Up: Internal definitions   [Contents][Index]

6.2.3 Macros

Macro: internal-real-time &body BODY

For development. Returns elapsed (internal real) time.

Package

dufy/internal

Source

utilities.lisp (file)

Macro: let-converter DEFINITIONS &body BODY

Is a local version of defconverter.

definitions ::= (definition*)
definition ::= (name from-colorspace to-colorspace &key exclude-args)

Example:
(let-converter ((rgbpack-to-lchab rgbpack lchab)
(lchab-to-rgbpack lchab rgbpack :exclude-args (clamp))) (format t "~X~%" (multiple-value-call #’lchab-to-rgbpack (rgbpack-to-lchab #xAABBCC))))
;; AABBCC
;; => NIL

Package

dufy/internal

Source

colorspace.lisp (file)


Next: , Previous: , Up: Internal definitions   [Contents][Index]

6.2.4 Functions

Function: %make-cat MATRIX &aux INV-MATRIX
Package

dufy/core

Source

cat.lisp (file)

Function: %make-functional &key (FNAME FNAME) (TERM TERM) (COLORSPACE COLORSPACE) (DIMENSION DIMENSION) (KEY-ARGS KEY-ARGS) (ALLOW-OTHER-KEYS ALLOW-OTHER-KEYS) (AUX-ARGS AUX-ARGS)
Package

dufy/internal

Source

colorspace.lisp (file)

Function: %make-illuminant &key (X X) (Z Z) (SPECTRUM SPECTRUM) (OBSERVER OBSERVER) (TO-SPECTRUM-MATRIX TO-SPECTRUM-MATRIX)
Package

dufy/core

Source

spectrum.lisp (file)

Function: %make-observer &key (BEGIN-WL BEGIN-WL) (END-WL END-WL) (CMF-TABLE CMF-TABLE) (CMF-X CMF-X) (CMF-Y CMF-Y) (CMF-Z CMF-Z) (CMF CMF)
Package

dufy/core

Source

spectrum.lisp (file)

Function: %make-primary-converter &key (FROM-COLORSPACE FROM-COLORSPACE) (TO-COLORSPACE TO-COLORSPACE) (NAME NAME) (KEY-ARGS KEY-ARGS) (ALLOW-OTHER-KEYS ALLOW-OTHER-KEYS) (AUX-ARGS AUX-ARGS)
Package

dufy/internal

Source

colorspace.lisp (file)

Function: %make-rgbspace &key (XR XR) (YR YR) (XG XG) (YG YG) (XB XB) (YB YB) (ILLUMINANT ILLUMINANT) (TO-XYZ-MATRIX TO-XYZ-MATRIX) (FROM-XYZ-MATRIX FROM-XYZ-MATRIX) (LMIN LMIN) (LMAX LMAX) (LINEARIZER LINEARIZER) (DELINEARIZER DELINEARIZER) (MIN MIN) (MAX MAX) (LENGTH LENGTH) (/LENGTH /LENGTH) (NORMAL NORMAL) (BIT-PER-CHANNEL BIT-PER-CHANNEL) (QMAX QMAX) (QMAX-FLOAT QMAX-FLOAT) (LENGTH/QMAX-FLOAT LENGTH/QMAX-FLOAT) (QMAX-FLOAT/LENGTH QMAX-FLOAT/LENGTH)
Package

dufy/core

Source

rgb.lisp (file)

Function: %spectrum-to-xyz SPECTRUM ILLUMINANT-SPD OBSERVER &optional BEGIN-WL END-WL BAND

Is an internal function and will be called in SPECTRUM-TO-XYZ in another module.

SPECTRUM := spectral reflectance (or transmittance) ILLUMINANT-SPD :=
SPD of illuminant

Package

dufy/core

Source

spectrum.lisp (file)

Function: add-functional FNAME COLORSPACE LAMBDA-LIST &key TERM

Registers a functional to *functional-table*

Package

dufy/internal

Source

colorspace.lisp (file)

Function: add-primary-converter FROM-COLORSPACE TO-COLORSPACE LAMBDA-LIST &key NAME

Registers a primary converter to *PRIMARY-CONVERTER-TABLE*

Package

dufy/internal

Source

colorspace.lisp (file)

Function: array-to-list ARRAY

array -> list coercion

Package

dufy/internal

Source

utilities.lisp (file)

Function: c-to-d65 X Y Z
Package

dufy/munsell

Source

convert.lisp (file)

Function: calc-cat-matrix FROM-ILLUMINANT TO-ILLUMINANT &optional CAT

Returns a 3*3 chromatic adaptation matrix between FROM-ILLUMINANT and TO-ILLUMINANT in XYZ space.

Package

dufy/core

Source

cat.lisp (file)

Function: calc-cat-matrix-for-lrgb FROM-RGBSPACE TO-RGBSPACE &optional CAT

Linear transformation: LRGB -> XYZ -> XYZ -> LRGB

Package

dufy/core

Source

cat.lisp (file)

Function: calc-isochroma-ovoid VALUE CHROMA/2
Package

dufy/munsell

Source

convert.lisp (file)

Function: calc-isochroma-ovoid-integer-case VALUE CHROMA/2

Value is integer.

Package

dufy/munsell

Source

convert.lisp (file)

Function: calc-to-spectrum-matrix ILLUMINANT-SPD OBSERVER &optional BEGIN-WL END-WL BAND

The returned matrix will be used in XYZ-to-spectrum conversion.

Package

dufy/core

Source

spectrum.lisp (file)

Function: calc-uvprime X Y

Calculates u’ and v’ from xy.

Package

dufy/core

Source

lab-and-luv.lisp (file)

Function: calc-uvprime-from-xyz X Y Z

Calculates u’ and v’ from XYZ.

Package

dufy/core

Source

lab-and-luv.lisp (file)

Function: cartesian-to-mhvc X Y VALUE
Package

dufy/munsell

Source

invert.lisp (file)

Function: cat-p OBJECT
Package

dufy/core

Source

cat.lisp (file)

Function: circular-delta THETA1 THETA2

Is called in INVERT-LCHAB-TO-MHVC.

Package

dufy/munsell

Source

invert.lisp (file)

Function: circularize LST

Destructively makes a circular list.

Package

dufy/internal

Source

colorspace.lisp (file)

Function: collect-aux-arg-names CHAIN
Package

dufy/internal

Source

colorspace.lisp (file)

Function: collect-aux-args CHAIN
Package

dufy/internal

Source

colorspace.lisp (file)

Function: collect-key-arg-key-names CHAIN
Package

dufy/internal

Source

colorspace.lisp (file)

Function: collect-key-arg-names CHAIN
Package

dufy/internal

Source

colorspace.lisp (file)

Function: collect-key-args CHAIN &key EXCLUDE-LIST
Package

dufy/internal

Source

colorspace.lisp (file)

Function: colorspace-arg-types INSTANCE
Function: (setf colorspace-arg-types) VALUE INSTANCE
Package

dufy/internal

Source

colorspace.lisp (file)

Function: colorspace-args INSTANCE
Function: (setf colorspace-args) VALUE INSTANCE
Package

dufy/internal

Source

colorspace.lisp (file)

Function: colorspace-documentation INSTANCE
Function: (setf colorspace-documentation) VALUE INSTANCE
Package

dufy/internal

Source

colorspace.lisp (file)

Function: colorspace-name INSTANCE
Function: (setf colorspace-name) VALUE INSTANCE
Package

dufy/internal

Source

colorspace.lisp (file)

Function: colorspace-neighbors INSTANCE
Function: (setf colorspace-neighbors) VALUE INSTANCE
Package

dufy/internal

Source

colorspace.lisp (file)

Function: colorspace-p OBJECT
Package

dufy/internal

Source

colorspace.lisp (file)

Function: colorspace-return-types INSTANCE
Function: (setf colorspace-return-types) VALUE INSTANCE
Package

dufy/internal

Source

colorspace.lisp (file)

Function: colorspace= SPACE1 SPACE2
Package

dufy/internal

Source

colorspace.lisp (file)

Function: contains-allow-other-keys-p CHAIN
Package

dufy/internal

Source

colorspace.lisp (file)

Function: copy-cat INSTANCE
Package

dufy/core

Source

cat.lisp (file)

Function: copy-colorspace INSTANCE
Package

dufy/internal

Source

colorspace.lisp (file)

Function: copy-functional INSTANCE
Package

dufy/internal

Source

colorspace.lisp (file)

Function: copy-mb-line INSTANCE
Package

dufy/internal

Source

mb-line.lisp (file)

Function: copy-observer INSTANCE
Package

dufy/core

Source

spectrum.lisp (file)

Function: copy-primary-converter INSTANCE
Package

dufy/internal

Source

colorspace.lisp (file)

Function: copy-queue INSTANCE
Package

dufy/internal

Source

colorspace.lisp (file)

Function: d65-to-c X Y Z
Package

dufy/munsell

Source

invert.lisp (file)

Function: delinearize-prophoto X
Package

dufy/core

Source

builtin-rgbspaces.lisp (file)

Function: delinearize-scrgb-nl X
Package

dufy/core

Source

builtin-rgbspaces.lisp (file)

Function: delinearize-srgb X

delinealizer of sRGB (actually the same as bg-sRGB)

Package

dufy/core

Source

rgb.lisp (file)

Function: dequeue QUEUE
Package

dufy/internal

Source

colorspace.lisp (file)

Function: determinant MAT
Package

dufy/internal

Source

matrix.lisp (file)

Function: duplicate-aux-and-key-p KEY-ARGS AUX-ARGS
Package

dufy/internal

Source

colorspace.lisp (file)

Function: empty-spectrum ()

Used internally instead of NIL.

Package

dufy/core

Source

spectrum.lisp (file)

Function: enqueue OBJ QUEUE
Package

dufy/internal

Source

colorspace.lisp (file)

Function: ensure-colorspace-name THING
Package

dufy/internal

Source

colorspace.lisp (file)

Function: evaluate-error-of-y-to-munsell-value &optional NUM

For devel. Returns the maximal error and the corresponding Y.

Package

dufy/munsell

Source

fundamental.lisp (file)

Function: expand-conversion-form CS-CHAIN &key EXCLUDE-ARGS
Package

dufy/internal

Source

colorspace.lisp (file)

Function: find-colorspace COLORSPACE-DESIGNATOR &optional ERROR

colorspace-designator ::= symbol | colorspace

Package

dufy/internal

Source

colorspace.lisp (file)

Function: find-converter-path FROM-COLORSPACE TO-COLORSPACE &key IF-DOES-NOT-EXIST

Finds the shortest path in the graph of color spaces by BFS.

Package

dufy/internal

Source

colorspace.lisp (file)

Function: find-duplicates LST &key KEY TEST
Package

dufy/internal

Source

colorspace.lisp (file)

Function: function-f X
Package

dufy/core

Source

lab-and-luv.lisp (file)

Function: functional-allow-other-keys INSTANCE
Function: (setf functional-allow-other-keys) VALUE INSTANCE
Package

dufy/internal

Source

colorspace.lisp (file)

Function: functional-aux-args INSTANCE
Function: (setf functional-aux-args) VALUE INSTANCE
Package

dufy/internal

Source

colorspace.lisp (file)

Function: functional-colorspace INSTANCE
Function: (setf functional-colorspace) VALUE INSTANCE
Package

dufy/internal

Source

colorspace.lisp (file)

Function: functional-dimension INSTANCE
Function: (setf functional-dimension) VALUE INSTANCE
Package

dufy/internal

Source

colorspace.lisp (file)

Function: functional-fname INSTANCE
Function: (setf functional-fname) VALUE INSTANCE
Package

dufy/internal

Source

colorspace.lisp (file)

Function: functional-key-args INSTANCE
Function: (setf functional-key-args) VALUE INSTANCE
Package

dufy/internal

Source

colorspace.lisp (file)

Function: functional-p OBJECT
Package

dufy/internal

Source

colorspace.lisp (file)

Function: functional-term INSTANCE
Function: (setf functional-term) VALUE INSTANCE
Package

dufy/internal

Source

colorspace.lisp (file)

Function: gen-args CHAIN &key EXCLUDE-ARGS EXTRA-KEY-ARGS WITH-AUX DIMENSION EXTRA-SUFFIX
Package

dufy/internal

Source

colorspace.lisp (file)

Function: gen-aux-args CHAIN
Package

dufy/internal

Source

colorspace.lisp (file)

Function: gen-converter-name FROM-COLORSPACE TO-COLORSPACE
Package

dufy/internal

Source

colorspace.lisp (file)

Function: gen-key-args CHAIN &optional EXCLUDE-ARGS
Package

dufy/internal

Source

colorspace.lisp (file)

Function: gen-local-key-args TERM1 TERM2 &optional EXCLUDE-ARGS
Package

dufy/internal

Source

colorspace.lisp (file)

Function: gen-passed-args CHAIN &key EXCLUDE-ARGS SUFFIX
Package

dufy/internal

Source

colorspace.lisp (file)

Function: get-allow-other-keys FROM-COLORSPACE TO-COLORSPACE
Package

dufy/internal

Source

colorspace.lisp (file)

Function: get-arg-types NAME
Package

dufy/internal

Source

colorspace.lisp (file)

Function: get-args NAME &key PACKAGE SUFFIX
Package

dufy/internal

Source

colorspace.lisp (file)

Function: get-aux-args FROM-COLORSPACE TO-COLORSPACE
Package

dufy/internal

Source

colorspace.lisp (file)

Function: get-aux-names FROM-COLORSPACE TO-COLORSPACE
Package

dufy/internal

Source

colorspace.lisp (file)

Function: get-cieluv-bounds L

Return a list of lines representing the boundaries of the polygon defining the in-gamut colors in CIELUV for a fixed L.

Package

dufy/hsluv

Source

hsluv.lisp (file)

Function: get-functional TERM
Package

dufy/internal

Source

colorspace.lisp (file)

Function: get-key-arg-key-names FROM-COLORSPACE TO-COLORSPACE
Package

dufy/internal

Source

colorspace.lisp (file)

Function: get-key-arg-names FROM-COLORSPACE TO-COLORSPACE
Package

dufy/internal

Source

colorspace.lisp (file)

Function: get-key-args FROM-COLORSPACE TO-COLORSPACE
Package

dufy/internal

Source

colorspace.lisp (file)

Function: get-neighbors NAME
Function: (setf get-neighbors) VAL NAME
Package

dufy/internal

Source

colorspace.lisp (file)

Function: get-primary-converter FROM-COLORSPACE TO-COLORSPACE
Package

dufy/internal

Source

colorspace.lisp (file)

Function: get-primary-converter-name FROM-COLORSPACE TO-COLORSPACE
Package

dufy/internal

Source

colorspace.lisp (file)

Function: get-return-types NAME
Package

dufy/internal

Source

colorspace.lisp (file)

Function: illuminant-p OBJECT
Package

dufy/core

Source

spectrum.lisp (file)

Function: illuminant-to-spectrum-matrix INSTANCE
Function: (setf illuminant-to-spectrum-matrix) VALUE INSTANCE
Package

dufy/core

Source

spectrum.lisp (file)

Function: invert-mhvc-to-lchab LSTAR CSTARAB HAB INIT-HUE40 INIT-CHROMA &key MAX-ITERATION IF-REACH-MAX FACTOR THRESHOLD

Illuminant C.

Package

dufy/munsell

Source

invert.lisp (file)

Function: key-arg= KEY1 KEY2
Package

dufy/internal

Source

colorspace.lisp (file)

Function: lab-to-xyy LSTAR ASTAR BSTAR &key ILLUMINANT
Package

dufy/core

Source

lab-and-luv.lisp (file)

Function: lambda-list= LAMBDA-LIST1 LAMBDA-LIST2
Package

dufy/internal

Source

colorspace.lisp (file)

Function: lchab-to-mhvc-all-integer-case LSTAR/10 CSTARAB/20 HAB/9

All integer case. Does no type checks: e.g. HAB/9 must be in {0, 1, ...., 39}.

Package

dufy/munsell

Source

invert.lisp (file)

Function: lchab-to-mhvc-general-case LSTAR/10 CSTARAB/20 HAB/9
Package

dufy/munsell

Source

invert.lisp (file)

Function: lchab-to-mhvc-l-c-integer-case LSTAR/10 CSTARAB/20 HAB/9
Package

dufy/munsell

Source

invert.lisp (file)

Function: lchab-to-mhvc-l-integer-case LSTAR/10 CSTARAB/20 HAB/9
Package

dufy/munsell

Source

invert.lisp (file)

Function: lchab-to-xyy LSTAR CSTARAB HAB &key ILLUMINANT
Package

dufy/core

Source

lab-and-luv.lisp (file)

Function: linearize-prophoto X
Package

dufy/core

Source

builtin-rgbspaces.lisp (file)

Function: linearize-scrgb-nl X
Package

dufy/core

Source

builtin-rgbspaces.lisp (file)

Function: linearize-srgb X

linearizer of sRGB (actually the same as bg-sRGB)

Package

dufy/core

Source

rgb.lisp (file)

Function: make-colorspace &key (NAME NAME) (ARGS ARGS) (ARG-TYPES ARG-TYPES) (RETURN-TYPES RETURN-TYPES) (DOCUMENTATION DOCUMENTATION) (NEIGHBORS NEIGHBORS)
Package

dufy/internal

Source

colorspace.lisp (file)

Function: make-functional FNAME COLORSPACE LAMBDA-LIST &key TERM

Constructor

Package

dufy/internal

Source

colorspace.lisp (file)

Function: make-illum-d-spectrum-array TEMPERATURE &optional BEGIN-WL END-WL
Package

dufy/core

Source

spectrum.lisp (file)

Function: make-primary-converter FROM-COLORSPACE TO-COLORSPACE LAMBDA-LIST &key NAME
Package

dufy/internal

Source

colorspace.lisp (file)

Function: make-queue &key (LIST LIST) (TAIL TAIL)
Package

dufy/internal

Source

colorspace.lisp (file)

Function: max-chroma-for-lh L H

Given L and H values, return the maximum chroma, constrained to those values.

Package

dufy/hsluv

Source

hsluv.lisp (file)

Function: max-chroma-lchab HUE40 VALUE &key USE-DARK

For devel. Returns the LCh(ab) value of the color on the max-chroma boundary in the MRD.

Package

dufy/munsell

Source

convert.lisp (file)

Function: max-safe-chroma-for-l L

Given L, return the maximum chroma available over the full range of hues.

For a fixed L, the in-gamut colors are bounded by a convex polygon, whose boundary lines are given by GET-CIELUV-BOUNDS. The maximum safe chroma is the maximum chroma that would be valid for any hue.

Package

dufy/hsluv

Source

hsluv.lisp (file)

Function: mb-line-intercept INSTANCE
Function: (setf mb-line-intercept) VALUE INSTANCE
Package

dufy/internal

Source

mb-line.lisp (file)

Function: mb-line-p OBJECT
Package

dufy/internal

Source

mb-line.lisp (file)

Function: mb-line-slope INSTANCE
Function: (setf mb-line-slope) VALUE INSTANCE
Package

dufy/internal

Source

mb-line.lisp (file)

Function: mhvc-invalid-p HUE40 VALUE CHROMA

Checks if Munsell HVC values are out of the valid range.

Package

dufy/munsell

Source

fundamental.lisp (file)

Function: mhvc-to-cartesian HUE40 VALUE CHROMA
Package

dufy/munsell

Source

invert.lisp (file)

Function: mhvc-to-lchab-all-integer-case HUE40 SCALED-VALUE HALF-CHROMA &optional DARK

All integer case. There are no type checks: e.g. HUE40 must be in {0, 1, ...., 39}.

Package

dufy/munsell

Source

convert.lisp (file)

Function: mhvc-to-lchab-general-case HUE40 SCALED-VALUE HALF-CHROMA &optional DARK
Package

dufy/munsell

Source

convert.lisp (file)

Function: mhvc-to-lchab-value-chroma-integer-case HUE40 SCALED-VALUE HALF-CHROMA &optional DARK
Package

dufy/munsell

Source

convert.lisp (file)

Function: mhvc-to-lchab-value-integer-case HUE40 SCALED-VALUE HALF-CHROMA &optional DARK
Package

dufy/munsell

Source

convert.lisp (file)

Function: mhvc-to-xyy HUE40 VALUE CHROMA

Illuminant D65.

Package

dufy/munsell

Source

convert.lisp (file)

Function: munsell-to-xyy MUNSELLSPEC

Illuminant D65.

Package

dufy/munsell

Source

convert.lisp (file)

Function: observer-cmf-table INSTANCE
Function: (setf observer-cmf-table) VALUE INSTANCE
Package

dufy/core

Source

spectrum.lisp (file)

Function: observer-p OBJECT
Package

dufy/core

Source

spectrum.lisp (file)

Function: predict-lchab-to-mhvc LSTAR CSTARAB HAB

Illuminant C.

Package

dufy/munsell

Source

invert.lisp (file)

Function: primary-converter-allow-other-keys INSTANCE
Function: (setf primary-converter-allow-other-keys) VALUE INSTANCE
Package

dufy/internal

Source

colorspace.lisp (file)

Function: primary-converter-aux-args INSTANCE
Function: (setf primary-converter-aux-args) VALUE INSTANCE
Package

dufy/internal

Source

colorspace.lisp (file)

Function: primary-converter-from-colorspace INSTANCE
Function: (setf primary-converter-from-colorspace) VALUE INSTANCE
Package

dufy/internal

Source

colorspace.lisp (file)

Function: primary-converter-key-args INSTANCE
Function: (setf primary-converter-key-args) VALUE INSTANCE
Package

dufy/internal

Source

colorspace.lisp (file)

Function: primary-converter-name INSTANCE
Function: (setf primary-converter-name) VALUE INSTANCE
Package

dufy/internal

Source

colorspace.lisp (file)

Function: primary-converter-p OBJECT
Package

dufy/internal

Source

colorspace.lisp (file)

Function: primary-converter-to-colorspace INSTANCE
Function: (setf primary-converter-to-colorspace) VALUE INSTANCE
Package

dufy/internal

Source

colorspace.lisp (file)

Function: print-hash-table HASH
Package

dufy/internal

Source

colorspace.lisp (file)

Function: qrgb-to-munsell-value R G B &optional RGBSPACE

For devel.

Package

dufy/munsell

Source

fundamental.lisp (file)

Function: qrgba-to-rgba QR QG QB QALPHA &key RGBSPACE
Package

dufy/core

Source

rgb.lisp (file)

Function: qrgba-to-rgbapack QR QG QB QALPHA &key RGBSPACE ORDER &aux CLAMP

Decodes a packed RGBA value, whose type depends on RGBSPACE but is typically unsigned 32-bit integer.

The order can be :ARGB or :RGBA. Note that it is different from the ’physical’ byte order in your machine, which depends on the endianess.

Package

dufy/core

Source

rgb.lisp (file)

Function: queue-list INSTANCE
Function: (setf queue-list) VALUE INSTANCE
Package

dufy/internal

Source

colorspace.lisp (file)

Function: queue-p OBJECT
Package

dufy/internal

Source

colorspace.lisp (file)

Function: queue-tail INSTANCE
Function: (setf queue-tail) VALUE INSTANCE
Package

dufy/internal

Source

colorspace.lisp (file)

Function: rgba-to-qrgba R G B ALPHA &key RGBSPACE CLAMP

Quantizes RGBA values from [RGBSPACE-MIN, RGBSPACE-MAX] ([0, 1], typically) to {0, 1, ..., RGBSPACE-QMAX} ({0, 1, ..., 255}, typically), though it accepts all the real values.

Package

dufy/core

Source

rgb.lisp (file)

Function: rgba-to-rgbapack R G B ALPHA &key RGBSPACE ORDER &aux CLAMP
Package

dufy/core

Source

rgb.lisp (file)

Function: rgbapack-to-qrgba INT &key RGBSPACE ORDER

The order can be :ARGB or :RGBA. Note that it is different from the ’physical’ byte order in your machine, which depends on the endianess.

Package

dufy/core

Source

rgb.lisp (file)

Function: rgbapack-to-rgba INT &key ORDER RGBSPACE
Package

dufy/core

Source

rgb.lisp (file)

Function: rgbspace-/length INSTANCE
Function: (setf rgbspace-/length) VALUE INSTANCE
Package

dufy/core

Source

rgb.lisp (file)

Function: rgbspace-length INSTANCE
Function: (setf rgbspace-length) VALUE INSTANCE
Package

dufy/core

Source

rgb.lisp (file)

Function: rgbspace-length/qmax-float INSTANCE
Function: (setf rgbspace-length/qmax-float) VALUE INSTANCE
Package

dufy/core

Source

rgb.lisp (file)

Function: rgbspace-p OBJECT
Package

dufy/core

Source

rgb.lisp (file)

Function: rgbspace-qmax-float INSTANCE
Function: (setf rgbspace-qmax-float) VALUE INSTANCE
Package

dufy/core

Source

rgb.lisp (file)

Function: rgbspace-qmax-float/length INSTANCE
Function: (setf rgbspace-qmax-float/length) VALUE INSTANCE
Package

dufy/core

Source

rgb.lisp (file)

Function: xyy-to-lab SMALL-X SMALL-Y Y &key ILLUMINANT
Package

dufy/core

Source

lab-and-luv.lisp (file)

Function: xyy-to-lchab SMALL-X SMALL-Y Y &key ILLUMINANT
Package

dufy/core

Source

lab-and-luv.lisp (file)

Function: y-to-lstar Y

Y (of XYZ) to L* (of L*a*b*)

Package

dufy/core

Source

lab-and-luv.lisp (file)


Next: , Previous: , Up: Internal definitions   [Contents][Index]

6.2.5 Generic functions

Generic Function: cond-chroma CONDITION
Generic Function: (setf cond-chroma) NEW-VALUE CONDITION
Package

dufy/munsell

Methods
Method: cond-chroma (CONDITION invalid-mhvc-error)
Method: (setf cond-chroma) NEW-VALUE (CONDITION invalid-mhvc-error)
Source

fundamental.lisp (file)

Generic Function: cond-illuminant CONDITION
Generic Function: (setf cond-illuminant) NEW-VALUE CONDITION
Package

dufy/core

Methods
Method: cond-illuminant (CONDITION no-spd-error)
Method: (setf cond-illuminant) NEW-VALUE (CONDITION no-spd-error)
Source

spectrum.lisp (file)

Generic Function: cond-message CONDITION
Generic Function: (setf cond-message) NEW-VALUE CONDITION
Package

dufy/munsell

Methods
Method: cond-message (CONDITION large-approximation-error)
Method: (setf cond-message) NEW-VALUE (CONDITION large-approximation-error)
Source

invert.lisp (file)

Generic Function: cond-spec CONDITION
Generic Function: (setf cond-spec) NEW-VALUE CONDITION
Package

dufy/munsell

Methods
Method: cond-spec (CONDITION munsellspec-parse-error)
Method: (setf cond-spec) NEW-VALUE (CONDITION munsellspec-parse-error)
Source

fundamental.lisp (file)

Generic Function: cond-value CONDITION
Generic Function: (setf cond-value) NEW-VALUE CONDITION
Package

dufy/munsell

Methods
Method: cond-value (CONDITION invalid-mhvc-error)
Method: (setf cond-value) NEW-VALUE (CONDITION invalid-mhvc-error)
Source

fundamental.lisp (file)


Next: , Previous: , Up: Internal definitions   [Contents][Index]

6.2.6 Structures

Structure: mb-line ()

Slope-intercept representation of a line

Package

dufy/internal

Source

mb-line.lisp (file)

Direct superclasses

structure-object (structure)

Direct slots
Slot: slope
Type

double-float

Initform

0.0d0

Readers

mb-line-slope (function)

Writers

(setf mb-line-slope) (function)

Slot: intercept
Type

double-float

Initform

1.0d0

Readers

mb-line-intercept (function)

Writers

(setf mb-line-intercept) (function)

Structure: queue ()
Package

dufy/internal

Source

colorspace.lisp (file)

Direct superclasses

structure-object (structure)

Direct slots
Slot: list
Readers

queue-list (function)

Writers

(setf queue-list) (function)

Slot: tail
Readers

queue-tail (function)

Writers

(setf queue-tail) (function)


Previous: , Up: Internal definitions   [Contents][Index]

6.2.7 Types

Type: spectrum-function ()
Package

dufy/core

Source

spectrum.lisp (file)


Previous: , Up: Top   [Contents][Index]

Appendix A Indexes


Next: , Previous: , Up: Indexes   [Contents][Index]

A.1 Concepts

Jump to:   D   F   L   M   S  
Index Entry  Section

D
dufy.asd: The dufy․asd file
dufy/core/core: The dufy/core/core module
dufy/core/core/builtin-rgbspaces.lisp: The dufy/core/core/builtin-rgbspaces․lisp file
dufy/core/core/cat.lisp: The dufy/core/core/cat․lisp file
dufy/core/core/cmf-data.lisp: The dufy/core/core/cmf-data․lisp file
dufy/core/core/deltae.lisp: The dufy/core/core/deltae․lisp file
dufy/core/core/illuminants-data.lisp: The dufy/core/core/illuminants-data․lisp file
dufy/core/core/lab-and-luv.lisp: The dufy/core/core/lab-and-luv․lisp file
dufy/core/core/package.lisp: The dufy/core/core/package․lisp file
dufy/core/core/rgb.lisp: The dufy/core/core/rgb․lisp file
dufy/core/core/spectrum.lisp: The dufy/core/core/spectrum․lisp file
dufy/core/core/xyz.lisp: The dufy/core/core/xyz․lisp file
dufy/dat: The dufy/dat module
dufy/dat/ciede2000-test-data.csv: The dufy/dat/ciede2000-test-data․csv file
dufy/dat/FL3.x.tsv: The dufy/dat/fl3․x․tsv file
dufy/hsluv/hsluv: The dufy/hsluv/hsluv module
dufy/hsluv/hsluv/hsluv.lisp: The dufy/hsluv/hsluv/hsluv․lisp file
dufy/hsluv/hsluv/package.lisp: The dufy/hsluv/hsluv/package․lisp file
dufy/internal/internal: The dufy/internal/internal module
dufy/internal/internal/arithmetic.lisp: The dufy/internal/internal/arithmetic․lisp file
dufy/internal/internal/colorspace.lisp: The dufy/internal/internal/colorspace․lisp file
dufy/internal/internal/matrix.lisp: The dufy/internal/internal/matrix․lisp file
dufy/internal/internal/mb-line.lisp: The dufy/internal/internal/mb-line․lisp file
dufy/internal/internal/package.lisp: The dufy/internal/internal/package․lisp file
dufy/internal/internal/utilities.lisp: The dufy/internal/internal/utilities․lisp file
dufy/munsell/munsell: The dufy/munsell/munsell module
dufy/munsell/munsell/convert.lisp: The dufy/munsell/munsell/convert․lisp file
dufy/munsell/munsell/fundamental.lisp: The dufy/munsell/munsell/fundamental․lisp file
dufy/munsell/munsell/inversed-renotation-data.lisp: The dufy/munsell/munsell/inversed-renotation-data․lisp file
dufy/munsell/munsell/invert.lisp: The dufy/munsell/munsell/invert․lisp file
dufy/munsell/munsell/package.lisp: The dufy/munsell/munsell/package․lisp file
dufy/munsell/munsell/renotation-data.lisp: The dufy/munsell/munsell/renotation-data․lisp file
dufy/munsell/munsell/y-to-value-data.lisp: The dufy/munsell/munsell/y-to-value-data․lisp file
dufy/src: The dufy/src module
dufy/src/package.lisp: The dufy/src/package․lisp file

F
File, Lisp, dufy.asd: The dufy․asd file
File, Lisp, dufy/core/core/builtin-rgbspaces.lisp: The dufy/core/core/builtin-rgbspaces․lisp file
File, Lisp, dufy/core/core/cat.lisp: The dufy/core/core/cat․lisp file
File, Lisp, dufy/core/core/cmf-data.lisp: The dufy/core/core/cmf-data․lisp file
File, Lisp, dufy/core/core/deltae.lisp: The dufy/core/core/deltae․lisp file
File, Lisp, dufy/core/core/illuminants-data.lisp: The dufy/core/core/illuminants-data․lisp file
File, Lisp, dufy/core/core/lab-and-luv.lisp: The dufy/core/core/lab-and-luv․lisp file
File, Lisp, dufy/core/core/package.lisp: The dufy/core/core/package․lisp file
File, Lisp, dufy/core/core/rgb.lisp: The dufy/core/core/rgb․lisp file
File, Lisp, dufy/core/core/spectrum.lisp: The dufy/core/core/spectrum․lisp file
File, Lisp, dufy/core/core/xyz.lisp: The dufy/core/core/xyz․lisp file
File, Lisp, dufy/hsluv/hsluv/hsluv.lisp: The dufy/hsluv/hsluv/hsluv․lisp file
File, Lisp, dufy/hsluv/hsluv/package.lisp: The dufy/hsluv/hsluv/package․lisp file
File, Lisp, dufy/internal/internal/arithmetic.lisp: The dufy/internal/internal/arithmetic․lisp file
File, Lisp, dufy/internal/internal/colorspace.lisp: The dufy/internal/internal/colorspace․lisp file
File, Lisp, dufy/internal/internal/matrix.lisp: The dufy/internal/internal/matrix․lisp file
File, Lisp, dufy/internal/internal/mb-line.lisp: The dufy/internal/internal/mb-line․lisp file
File, Lisp, dufy/internal/internal/package.lisp: The dufy/internal/internal/package․lisp file
File, Lisp, dufy/internal/internal/utilities.lisp: The dufy/internal/internal/utilities․lisp file
File, Lisp, dufy/munsell/munsell/convert.lisp: The dufy/munsell/munsell/convert․lisp file
File, Lisp, dufy/munsell/munsell/fundamental.lisp: The dufy/munsell/munsell/fundamental․lisp file
File, Lisp, dufy/munsell/munsell/inversed-renotation-data.lisp: The dufy/munsell/munsell/inversed-renotation-data․lisp file
File, Lisp, dufy/munsell/munsell/invert.lisp: The dufy/munsell/munsell/invert․lisp file
File, Lisp, dufy/munsell/munsell/package.lisp: The dufy/munsell/munsell/package․lisp file
File, Lisp, dufy/munsell/munsell/renotation-data.lisp: The dufy/munsell/munsell/renotation-data․lisp file
File, Lisp, dufy/munsell/munsell/y-to-value-data.lisp: The dufy/munsell/munsell/y-to-value-data․lisp file
File, Lisp, dufy/src/package.lisp: The dufy/src/package․lisp file
File, static, dufy/dat/ciede2000-test-data.csv: The dufy/dat/ciede2000-test-data․csv file
File, static, dufy/dat/FL3.x.tsv: The dufy/dat/fl3․x․tsv file

L
Lisp File, dufy.asd: The dufy․asd file
Lisp File, dufy/core/core/builtin-rgbspaces.lisp: The dufy/core/core/builtin-rgbspaces․lisp file
Lisp File, dufy/core/core/cat.lisp: The dufy/core/core/cat․lisp file
Lisp File, dufy/core/core/cmf-data.lisp: The dufy/core/core/cmf-data․lisp file
Lisp File, dufy/core/core/deltae.lisp: The dufy/core/core/deltae․lisp file
Lisp File, dufy/core/core/illuminants-data.lisp: The dufy/core/core/illuminants-data․lisp file
Lisp File, dufy/core/core/lab-and-luv.lisp: The dufy/core/core/lab-and-luv․lisp file
Lisp File, dufy/core/core/package.lisp: The dufy/core/core/package․lisp file
Lisp File, dufy/core/core/rgb.lisp: The dufy/core/core/rgb․lisp file
Lisp File, dufy/core/core/spectrum.lisp: The dufy/core/core/spectrum․lisp file
Lisp File, dufy/core/core/xyz.lisp: The dufy/core/core/xyz․lisp file
Lisp File, dufy/hsluv/hsluv/hsluv.lisp: The dufy/hsluv/hsluv/hsluv․lisp file
Lisp File, dufy/hsluv/hsluv/package.lisp: The dufy/hsluv/hsluv/package․lisp file
Lisp File, dufy/internal/internal/arithmetic.lisp: The dufy/internal/internal/arithmetic․lisp file
Lisp File, dufy/internal/internal/colorspace.lisp: The dufy/internal/internal/colorspace․lisp file
Lisp File, dufy/internal/internal/matrix.lisp: The dufy/internal/internal/matrix․lisp file
Lisp File, dufy/internal/internal/mb-line.lisp: The dufy/internal/internal/mb-line․lisp file
Lisp File, dufy/internal/internal/package.lisp: The dufy/internal/internal/package․lisp file
Lisp File, dufy/internal/internal/utilities.lisp: The dufy/internal/internal/utilities․lisp file
Lisp File, dufy/munsell/munsell/convert.lisp: The dufy/munsell/munsell/convert․lisp file
Lisp File, dufy/munsell/munsell/fundamental.lisp: The dufy/munsell/munsell/fundamental․lisp file
Lisp File, dufy/munsell/munsell/inversed-renotation-data.lisp: The dufy/munsell/munsell/inversed-renotation-data․lisp file
Lisp File, dufy/munsell/munsell/invert.lisp: The dufy/munsell/munsell/invert․lisp file
Lisp File, dufy/munsell/munsell/package.lisp: The dufy/munsell/munsell/package․lisp file
Lisp File, dufy/munsell/munsell/renotation-data.lisp: The dufy/munsell/munsell/renotation-data․lisp file
Lisp File, dufy/munsell/munsell/y-to-value-data.lisp: The dufy/munsell/munsell/y-to-value-data․lisp file
Lisp File, dufy/src/package.lisp: The dufy/src/package․lisp file

M
Module, dufy/core/core: The dufy/core/core module
Module, dufy/dat: The dufy/dat module
Module, dufy/hsluv/hsluv: The dufy/hsluv/hsluv module
Module, dufy/internal/internal: The dufy/internal/internal module
Module, dufy/munsell/munsell: The dufy/munsell/munsell module
Module, dufy/src: The dufy/src module

S
Static File, dufy/dat/ciede2000-test-data.csv: The dufy/dat/ciede2000-test-data․csv file
Static File, dufy/dat/FL3.x.tsv: The dufy/dat/fl3․x․tsv file

Jump to:   D   F   L   M   S  

Next: , Previous: , Up: Indexes   [Contents][Index]

A.2 Functions

Jump to:   %   (  
A   B   C   D   E   F   G   H   I   K   L   M   N   O   P   Q   R   S   T   W   X   Y  
Index Entry  Section

%
%make-cat: Internal functions
%make-functional: Internal functions
%make-illuminant: Internal functions
%make-observer: Internal functions
%make-primary-converter: Internal functions
%make-rgbspace: Internal functions
%spectrum-to-xyz: Internal functions

(
(setf cat-inv-matrix): Exported functions
(setf cat-matrix): Exported functions
(setf colorspace-arg-types): Internal functions
(setf colorspace-args): Internal functions
(setf colorspace-documentation): Internal functions
(setf colorspace-name): Internal functions
(setf colorspace-neighbors): Internal functions
(setf colorspace-return-types): Internal functions
(setf cond-chroma): Internal generic functions
(setf cond-chroma): Internal generic functions
(setf cond-illuminant): Internal generic functions
(setf cond-illuminant): Internal generic functions
(setf cond-message): Internal generic functions
(setf cond-message): Internal generic functions
(setf cond-spec): Internal generic functions
(setf cond-spec): Internal generic functions
(setf cond-value): Internal generic functions
(setf cond-value): Internal generic functions
(setf functional-allow-other-keys): Internal functions
(setf functional-aux-args): Internal functions
(setf functional-colorspace): Internal functions
(setf functional-dimension): Internal functions
(setf functional-fname): Internal functions
(setf functional-key-args): Internal functions
(setf functional-term): Internal functions
(setf get-neighbors): Internal functions
(setf illuminant-observer): Exported functions
(setf illuminant-spectrum): Exported functions
(setf illuminant-to-spectrum-matrix): Internal functions
(setf illuminant-x): Exported functions
(setf illuminant-z): Exported functions
(setf mb-line-intercept): Internal functions
(setf mb-line-slope): Internal functions
(setf observer-begin-wl): Exported functions
(setf observer-cmf): Exported functions
(setf observer-cmf-table): Internal functions
(setf observer-cmf-x): Exported functions
(setf observer-cmf-y): Exported functions
(setf observer-cmf-z): Exported functions
(setf observer-end-wl): Exported functions
(setf primary-converter-allow-other-keys): Internal functions
(setf primary-converter-aux-args): Internal functions
(setf primary-converter-from-colorspace): Internal functions
(setf primary-converter-key-args): Internal functions
(setf primary-converter-name): Internal functions
(setf primary-converter-to-colorspace): Internal functions
(setf queue-list): Internal functions
(setf queue-tail): Internal functions
(setf rgbspace-/length): Internal functions
(setf rgbspace-bit-per-channel): Exported functions
(setf rgbspace-delinearizer): Exported functions
(setf rgbspace-from-xyz-matrix): Exported functions
(setf rgbspace-illuminant): Exported functions
(setf rgbspace-length): Internal functions
(setf rgbspace-length/qmax-float): Internal functions
(setf rgbspace-linearizer): Exported functions
(setf rgbspace-lmax): Exported functions
(setf rgbspace-lmin): Exported functions
(setf rgbspace-max): Exported functions
(setf rgbspace-min): Exported functions
(setf rgbspace-normal): Exported functions
(setf rgbspace-qmax): Exported functions
(setf rgbspace-qmax-float): Internal functions
(setf rgbspace-qmax-float/length): Internal functions
(setf rgbspace-to-xyz-matrix): Exported functions
(setf rgbspace-xb): Exported functions
(setf rgbspace-xg): Exported functions
(setf rgbspace-xr): Exported functions
(setf rgbspace-yb): Exported functions
(setf rgbspace-yg): Exported functions
(setf rgbspace-yr): Exported functions

A
add-functional: Internal functions
add-primary-converter: Internal functions
approximate-spectrum: Exported functions
array-to-list: Internal functions

B
bb-spectrum: Exported functions

C
c-to-d65: Internal functions
calc-cat-matrix: Internal functions
calc-cat-matrix-for-lrgb: Internal functions
calc-isochroma-ovoid: Internal functions
calc-isochroma-ovoid-integer-case: Internal functions
calc-to-spectrum-matrix: Internal functions
calc-uvprime: Internal functions
calc-uvprime-from-xyz: Internal functions
call-with-profiling: Exported functions
cartesian-to-mhvc: Internal functions
cat-inv-matrix: Exported functions
cat-matrix: Exported functions
cat-p: Internal functions
circular-clamp: Exported functions
circular-delta: Internal functions
circular-lerp: Exported functions
circular-lerp-loose: Exported functions
circular-member: Exported functions
circular-nearer: Exported functions
circularize: Internal functions
collect-aux-arg-names: Internal functions
collect-aux-args: Internal functions
collect-key-arg-key-names: Internal functions
collect-key-arg-names: Internal functions
collect-key-args: Internal functions
colorspace-arg-types: Internal functions
colorspace-args: Internal functions
colorspace-documentation: Internal functions
colorspace-name: Internal functions
colorspace-neighbors: Internal functions
colorspace-p: Internal functions
colorspace-return-types: Internal functions
colorspace=: Internal functions
Compiler Macro, make-illuminant: Exported compiler macros
cond-chroma: Internal generic functions
cond-chroma: Internal generic functions
cond-illuminant: Internal generic functions
cond-illuminant: Internal generic functions
cond-message: Internal generic functions
cond-message: Internal generic functions
cond-spec: Internal generic functions
cond-spec: Internal generic functions
cond-value: Internal generic functions
cond-value: Internal generic functions
contains-allow-other-keys-p: Internal functions
copy-cat: Internal functions
copy-colorspace: Internal functions
copy-functional: Internal functions
copy-mb-line: Internal functions
copy-observer: Internal functions
copy-primary-converter: Internal functions
copy-queue: Internal functions
copy-rgbspace: Exported functions

D
d65-to-c: Internal functions
defconverter: Exported macros
defconverters: Exported macros
define-cat-function: Exported macros
define-colorspace: Exported macros
define-functional: Exported macros
define-primary-converter: Exported macros
degree-to-radian: Exported functions
delinearize: Exported functions
delinearize-prophoto: Internal functions
delinearize-scrgb-nl: Internal functions
delinearize-srgb: Internal functions
dequantize: Exported functions
dequeue: Internal functions
determinant: Internal functions
dotimes-unroll: Exported macros
duplicate-aux-and-key-p: Internal functions

E
empty-spectrum: Internal functions
enqueue: Internal functions
ensure-colorspace-name: Internal functions
evaluate-error-of-y-to-munsell-value: Internal functions
expand-conversion-form: Internal functions
extend-functional: Exported macros

F
find-colorspace: Internal functions
find-converter-path: Internal functions
find-duplicates: Internal functions
flat-spectrum: Exported functions
Function, %make-cat: Internal functions
Function, %make-functional: Internal functions
Function, %make-illuminant: Internal functions
Function, %make-observer: Internal functions
Function, %make-primary-converter: Internal functions
Function, %make-rgbspace: Internal functions
Function, %spectrum-to-xyz: Internal functions
Function, (setf cat-inv-matrix): Exported functions
Function, (setf cat-matrix): Exported functions
Function, (setf colorspace-arg-types): Internal functions
Function, (setf colorspace-args): Internal functions
Function, (setf colorspace-documentation): Internal functions
Function, (setf colorspace-name): Internal functions
Function, (setf colorspace-neighbors): Internal functions
Function, (setf colorspace-return-types): Internal functions
Function, (setf functional-allow-other-keys): Internal functions
Function, (setf functional-aux-args): Internal functions
Function, (setf functional-colorspace): Internal functions
Function, (setf functional-dimension): Internal functions
Function, (setf functional-fname): Internal functions
Function, (setf functional-key-args): Internal functions
Function, (setf functional-term): Internal functions
Function, (setf get-neighbors): Internal functions
Function, (setf illuminant-observer): Exported functions
Function, (setf illuminant-spectrum): Exported functions
Function, (setf illuminant-to-spectrum-matrix): Internal functions
Function, (setf illuminant-x): Exported functions
Function, (setf illuminant-z): Exported functions
Function, (setf mb-line-intercept): Internal functions
Function, (setf mb-line-slope): Internal functions
Function, (setf observer-begin-wl): Exported functions
Function, (setf observer-cmf): Exported functions
Function, (setf observer-cmf-table): Internal functions
Function, (setf observer-cmf-x): Exported functions
Function, (setf observer-cmf-y): Exported functions
Function, (setf observer-cmf-z): Exported functions
Function, (setf observer-end-wl): Exported functions
Function, (setf primary-converter-allow-other-keys): Internal functions
Function, (setf primary-converter-aux-args): Internal functions
Function, (setf primary-converter-from-colorspace): Internal functions
Function, (setf primary-converter-key-args): Internal functions
Function, (setf primary-converter-name): Internal functions
Function, (setf primary-converter-to-colorspace): Internal functions
Function, (setf queue-list): Internal functions
Function, (setf queue-tail): Internal functions
Function, (setf rgbspace-/length): Internal functions
Function, (setf rgbspace-bit-per-channel): Exported functions
Function, (setf rgbspace-delinearizer): Exported functions
Function, (setf rgbspace-from-xyz-matrix): Exported functions
Function, (setf rgbspace-illuminant): Exported functions
Function, (setf rgbspace-length): Internal functions
Function, (setf rgbspace-length/qmax-float): Internal functions
Function, (setf rgbspace-linearizer): Exported functions
Function, (setf rgbspace-lmax): Exported functions
Function, (setf rgbspace-lmin): Exported functions
Function, (setf rgbspace-max): Exported functions
Function, (setf rgbspace-min): Exported functions
Function, (setf rgbspace-normal): Exported functions
Function, (setf rgbspace-qmax): Exported functions
Function, (setf rgbspace-qmax-float): Internal functions
Function, (setf rgbspace-qmax-float/length): Internal functions
Function, (setf rgbspace-to-xyz-matrix): Exported functions
Function, (setf rgbspace-xb): Exported functions
Function, (setf rgbspace-xg): Exported functions
Function, (setf rgbspace-xr): Exported functions
Function, (setf rgbspace-yb): Exported functions
Function, (setf rgbspace-yg): Exported functions
Function, (setf rgbspace-yr): Exported functions
Function, add-functional: Internal functions
Function, add-primary-converter: Internal functions
Function, approximate-spectrum: Exported functions
Function, array-to-list: Internal functions
Function, bb-spectrum: Exported functions
Function, c-to-d65: Internal functions
Function, calc-cat-matrix: Internal functions
Function, calc-cat-matrix-for-lrgb: Internal functions
Function, calc-isochroma-ovoid: Internal functions
Function, calc-isochroma-ovoid-integer-case: Internal functions
Function, calc-to-spectrum-matrix: Internal functions
Function, calc-uvprime: Internal functions
Function, calc-uvprime-from-xyz: Internal functions
Function, call-with-profiling: Exported functions
Function, cartesian-to-mhvc: Internal functions
Function, cat-inv-matrix: Exported functions
Function, cat-matrix: Exported functions
Function, cat-p: Internal functions
Function, circular-clamp: Exported functions
Function, circular-delta: Internal functions
Function, circular-lerp: Exported functions
Function, circular-lerp-loose: Exported functions
Function, circular-member: Exported functions
Function, circular-nearer: Exported functions
Function, circularize: Internal functions
Function, collect-aux-arg-names: Internal functions
Function, collect-aux-args: Internal functions
Function, collect-key-arg-key-names: Internal functions
Function, collect-key-arg-names: Internal functions
Function, collect-key-args: Internal functions
Function, colorspace-arg-types: Internal functions
Function, colorspace-args: Internal functions
Function, colorspace-documentation: Internal functions
Function, colorspace-name: Internal functions
Function, colorspace-neighbors: Internal functions
Function, colorspace-p: Internal functions
Function, colorspace-return-types: Internal functions
Function, colorspace=: Internal functions
Function, contains-allow-other-keys-p: Internal functions
Function, copy-cat: Internal functions
Function, copy-colorspace: Internal functions
Function, copy-functional: Internal functions
Function, copy-mb-line: Internal functions
Function, copy-observer: Internal functions
Function, copy-primary-converter: Internal functions
Function, copy-queue: Internal functions
Function, copy-rgbspace: Exported functions
Function, d65-to-c: Internal functions
Function, degree-to-radian: Exported functions
Function, delinearize: Exported functions
Function, delinearize-prophoto: Internal functions
Function, delinearize-scrgb-nl: Internal functions
Function, delinearize-srgb: Internal functions
Function, dequantize: Exported functions
Function, dequeue: Internal functions
Function, determinant: Internal functions
Function, duplicate-aux-and-key-p: Internal functions
Function, empty-spectrum: Internal functions
Function, enqueue: Internal functions
Function, ensure-colorspace-name: Internal functions
Function, evaluate-error-of-y-to-munsell-value: Internal functions
Function, expand-conversion-form: Internal functions
Function, find-colorspace: Internal functions
Function, find-converter-path: Internal functions
Function, find-duplicates: Internal functions
Function, flat-spectrum: Exported functions
Function, function-f: Internal functions
Function, functional-allow-other-keys: Internal functions
Function, functional-aux-args: Internal functions
Function, functional-colorspace: Internal functions
Function, functional-dimension: Internal functions
Function, functional-fname: Internal functions
Function, functional-key-args: Internal functions
Function, functional-p: Internal functions
Function, functional-term: Internal functions
Function, gen-args: Internal functions
Function, gen-aux-args: Internal functions
Function, gen-cat-function: Exported functions
Function, gen-converter-name: Internal functions
Function, gen-delinearizer: Exported functions
Function, gen-illum-d-spectrum: Exported functions
Function, gen-key-args: Internal functions
Function, gen-linearizer: Exported functions
Function, gen-local-key-args: Internal functions
Function, gen-passed-args: Internal functions
Function, gen-rgbspace-changer: Exported functions
Function, gen-spectrum: Exported functions
Function, get-allow-other-keys: Internal functions
Function, get-arg-types: Internal functions
Function, get-args: Internal functions
Function, get-aux-args: Internal functions
Function, get-aux-names: Internal functions
Function, get-cieluv-bounds: Internal functions
Function, get-functional: Internal functions
Function, get-key-arg-key-names: Internal functions
Function, get-key-arg-names: Internal functions
Function, get-key-args: Internal functions
Function, get-neighbors: Internal functions
Function, get-primary-converter: Internal functions
Function, get-primary-converter-name: Internal functions
Function, get-return-types: Internal functions
Function, hpluv-to-lchuv: Exported functions
Function, hpluv-to-lrgb: Exported functions
Function, hpluv-to-qrgb: Exported functions
Function, hpluv-to-rgb: Exported functions
Function, hpluv-to-rgbpack: Exported functions
Function, hpluv-to-xyz: Exported functions
Function, hsl-to-lrgb: Exported functions
Function, hsl-to-qrgb: Exported functions
Function, hsl-to-rgb: Exported functions
Function, hsl-to-rgbpack: Exported functions
Function, hsl-to-xyz: Exported functions
Function, hsluv-to-lchuv: Exported functions
Function, hsluv-to-lrgb: Exported functions
Function, hsluv-to-qrgb: Exported functions
Function, hsluv-to-rgb: Exported functions
Function, hsluv-to-rgbpack: Exported functions
Function, hsluv-to-xyz: Exported functions
Function, hsv-to-lrgb: Exported functions
Function, hsv-to-qrgb: Exported functions
Function, hsv-to-rgb: Exported functions
Function, hsv-to-rgbpack: Exported functions
Function, hsv-to-xyz: Exported functions
Function, illuminant-no-spd-p: Exported functions
Function, illuminant-observer: Exported functions
Function, illuminant-p: Internal functions
Function, illuminant-spectrum: Exported functions
Function, illuminant-to-spectrum-matrix: Internal functions
Function, illuminant-x: Exported functions
Function, illuminant-xy: Exported functions
Function, illuminant-z: Exported functions
Function, invert-matrix: Exported functions
Function, invert-mhvc-to-lchab: Internal functions
Function, key-arg=: Internal functions
Function, lab-deltae00: Exported functions
Function, lab-deltae94: Exported functions
Function, lab-deltaeab: Exported functions
Function, lab-deltaecmc: Exported functions
Function, lab-to-lchab: Exported functions
Function, lab-to-xyy: Internal functions
Function, lab-to-xyz: Exported functions
Function, lambda-list=: Internal functions
Function, lchab-to-lab: Exported functions
Function, lchab-to-mhvc-all-integer-case: Internal functions
Function, lchab-to-mhvc-general-case: Internal functions
Function, lchab-to-mhvc-illum-c: Exported functions
Function, lchab-to-mhvc-l-c-integer-case: Internal functions
Function, lchab-to-mhvc-l-integer-case: Internal functions
Function, lchab-to-munsell-illum-c: Exported functions
Function, lchab-to-xyy: Internal functions
Function, lchab-to-xyz: Exported functions
Function, lchuv-to-hpluv: Exported functions
Function, lchuv-to-hsluv: Exported functions
Function, lchuv-to-luv: Exported functions
Function, lchuv-to-xyz: Exported functions
Function, linearize: Exported functions
Function, linearize-prophoto: Internal functions
Function, linearize-scrgb-nl: Internal functions
Function, linearize-srgb: Internal functions
Function, lms-to-xyz: Exported functions
Function, lrgb-out-of-gamut-p: Exported functions
Function, lrgb-to-hpluv: Exported functions
Function, lrgb-to-hsl: Exported functions
Function, lrgb-to-hsluv: Exported functions
Function, lrgb-to-hsv: Exported functions
Function, lrgb-to-qrgb: Exported functions
Function, lrgb-to-rgb: Exported functions
Function, lrgb-to-rgbpack: Exported functions
Function, lrgb-to-xyz: Exported functions
Function, lstar-to-munsell-value: Exported functions
Function, lstar-to-y: Exported functions
Function, luv-to-lchuv: Exported functions
Function, luv-to-xyz: Exported functions
Function, make-cat: Exported functions
Function, make-colorspace: Internal functions
Function, make-functional: Internal functions
Function, make-illum-d-spectrum-array: Internal functions
Function, make-illuminant: Exported functions
Function, make-mb-line: Exported functions
Function, make-observer: Exported functions
Function, make-primary-converter: Internal functions
Function, make-queue: Internal functions
Function, make-rgbspace: Exported functions
Function, max-chroma-for-lh: Internal functions
Function, max-chroma-in-mrd: Exported functions
Function, max-chroma-lchab: Internal functions
Function, max-safe-chroma-for-l: Internal functions
Function, mb-line-distance-from-origin: Exported functions
Function, mb-line-intercept: Internal functions
Function, mb-line-p: Internal functions
Function, mb-line-ray-intersect-distance: Exported functions
Function, mb-line-slope: Internal functions
Function, mhvc-invalid-p: Internal functions
Function, mhvc-out-of-mrd-p: Exported functions
Function, mhvc-to-cartesian: Internal functions
Function, mhvc-to-lchab-all-integer-case: Internal functions
Function, mhvc-to-lchab-general-case: Internal functions
Function, mhvc-to-lchab-illum-c: Exported functions
Function, mhvc-to-lchab-value-chroma-integer-case: Internal functions
Function, mhvc-to-lchab-value-integer-case: Internal functions
Function, mhvc-to-munsell: Exported functions
Function, mhvc-to-xyy: Internal functions
Function, mhvc-to-xyz: Exported functions
Function, mhvc-to-xyz-illum-c: Exported functions
Function, multiply-mat-mat: Exported functions
Function, multiply-mat-vec: Exported functions
Function, multiply-matrices: Exported functions
Function, munsell-out-of-mrd-p: Exported functions
Function, munsell-to-lchab-illum-c: Exported functions
Function, munsell-to-mhvc: Exported functions
Function, munsell-to-xyy: Internal functions
Function, munsell-to-xyz: Exported functions
Function, munsell-to-xyz-illum-c: Exported functions
Function, munsell-value-to-lstar: Exported functions
Function, munsell-value-to-y: Exported functions
Function, nearly-equal: Exported functions
Function, nearly<=: Exported functions
Function, nearly=: Exported functions
Function, observer-begin-wl: Exported functions
Function, observer-cmf: Exported functions
Function, observer-cmf-table: Internal functions
Function, observer-cmf-x: Exported functions
Function, observer-cmf-y: Exported functions
Function, observer-cmf-z: Exported functions
Function, observer-end-wl: Exported functions
Function, observer-p: Internal functions
Function, optimal-spectrum-peak: Exported functions
Function, optimal-spectrum-trough: Exported functions
Function, predict-lchab-to-mhvc: Internal functions
Function, primary-converter-allow-other-keys: Internal functions
Function, primary-converter-aux-args: Internal functions
Function, primary-converter-from-colorspace: Internal functions
Function, primary-converter-key-args: Internal functions
Function, primary-converter-name: Internal functions
Function, primary-converter-p: Internal functions
Function, primary-converter-to-colorspace: Internal functions
Function, print-hash-table: Internal functions
Function, print-make-array: Exported functions
Function, qrgb-deltae00: Exported functions
Function, qrgb-deltae94: Exported functions
Function, qrgb-deltaeab: Exported functions
Function, qrgb-deltaecmc: Exported functions
Function, qrgb-out-of-gamut-p: Exported functions
Function, qrgb-to-hpluv: Exported functions
Function, qrgb-to-hsl: Exported functions
Function, qrgb-to-hsluv: Exported functions
Function, qrgb-to-hsv: Exported functions
Function, qrgb-to-lrgb: Exported functions
Function, qrgb-to-munsell-value: Internal functions
Function, qrgb-to-rgb: Exported functions
Function, qrgb-to-rgbpack: Exported functions
Function, qrgb-to-xyz: Exported functions
Function, qrgba-to-rgba: Internal functions
Function, qrgba-to-rgbapack: Internal functions
Function, quantize: Exported functions
Function, queue-list: Internal functions
Function, queue-p: Internal functions
Function, queue-tail: Internal functions
Function, radian-to-degree: Exported functions
Function, rgb-out-of-gamut-p: Exported functions
Function, rgb-to-hpluv: Exported functions
Function, rgb-to-hsl: Exported functions
Function, rgb-to-hsluv: Exported functions
Function, rgb-to-hsv: Exported functions
Function, rgb-to-lrgb: Exported functions
Function, rgb-to-qrgb: Exported functions
Function, rgb-to-rgbpack: Exported functions
Function, rgb-to-xyz: Exported functions
Function, rgba-to-qrgba: Internal functions
Function, rgba-to-rgbapack: Internal functions
Function, rgbapack-to-qrgba: Internal functions
Function, rgbapack-to-rgba: Internal functions
Function, rgbpack-to-hpluv: Exported functions
Function, rgbpack-to-hsl: Exported functions
Function, rgbpack-to-hsluv: Exported functions
Function, rgbpack-to-hsv: Exported functions
Function, rgbpack-to-lrgb: Exported functions
Function, rgbpack-to-qrgb: Exported functions
Function, rgbpack-to-rgb: Exported functions
Function, rgbpack-to-xyz: Exported functions
Function, rgbspace-/length: Internal functions
Function, rgbspace-bit-per-channel: Exported functions
Function, rgbspace-delinearizer: Exported functions
Function, rgbspace-from-xyz-matrix: Exported functions
Function, rgbspace-illuminant: Exported functions
Function, rgbspace-length: Internal functions
Function, rgbspace-length/qmax-float: Internal functions
Function, rgbspace-linearizer: Exported functions
Function, rgbspace-lmax: Exported functions
Function, rgbspace-lmin: Exported functions
Function, rgbspace-max: Exported functions
Function, rgbspace-min: Exported functions
Function, rgbspace-normal: Exported functions
Function, rgbspace-p: Internal functions
Function, rgbspace-qmax: Exported functions
Function, rgbspace-qmax-float: Internal functions
Function, rgbspace-qmax-float/length: Internal functions
Function, rgbspace-to-xyz-matrix: Exported functions
Function, rgbspace-xb: Exported functions
Function, rgbspace-xg: Exported functions
Function, rgbspace-xr: Exported functions
Function, rgbspace-yb: Exported functions
Function, rgbspace-yg: Exported functions
Function, rgbspace-yr: Exported functions
Function, spectrum-to-xyz: Exported functions
Function, square: Exported functions
Function, xyy-to-lab: Internal functions
Function, xyy-to-lchab: Internal functions
Function, xyy-to-xyz: Exported functions
Function, xyz-deltae00: Exported functions
Function, xyz-deltae94: Exported functions
Function, xyz-deltaeab: Exported functions
Function, xyz-deltaecmc: Exported functions
Function, xyz-to-hpluv: Exported functions
Function, xyz-to-hsl: Exported functions
Function, xyz-to-hsluv: Exported functions
Function, xyz-to-hsv: Exported functions
Function, xyz-to-lab: Exported functions
Function, xyz-to-lchab: Exported functions
Function, xyz-to-lchuv: Exported functions
Function, xyz-to-lms: Exported functions
Function, xyz-to-lrgb: Exported functions
Function, xyz-to-luv: Exported functions
Function, xyz-to-mhvc: Exported functions
Function, xyz-to-mhvc-illum-c: Exported functions
Function, xyz-to-munsell: Exported functions
Function, xyz-to-munsell-illum-c: Exported functions
Function, xyz-to-qrgb: Exported functions
Function, xyz-to-rgb: Exported functions
Function, xyz-to-rgbpack: Exported functions
Function, xyz-to-spectrum: Exported functions
Function, xyz-to-xyy: Exported functions
Function, y-to-lstar: Internal functions
Function, y-to-munsell-value: Exported functions
function-f: Internal functions
functional-allow-other-keys: Internal functions
functional-aux-args: Internal functions
functional-colorspace: Internal functions
functional-dimension: Internal functions
functional-fname: Internal functions
functional-key-args: Internal functions
functional-p: Internal functions
functional-term: Internal functions

G
gen-args: Internal functions
gen-aux-args: Internal functions
gen-cat-function: Exported functions
gen-converter-name: Internal functions
gen-delinearizer: Exported functions
gen-illum-d-spectrum: Exported functions
gen-key-args: Internal functions
gen-linearizer: Exported functions
gen-local-key-args: Internal functions
gen-passed-args: Internal functions
gen-rgbspace-changer: Exported functions
gen-spectrum: Exported functions
Generic Function, (setf cond-chroma): Internal generic functions
Generic Function, (setf cond-illuminant): Internal generic functions
Generic Function, (setf cond-message): Internal generic functions
Generic Function, (setf cond-spec): Internal generic functions
Generic Function, (setf cond-value): Internal generic functions
Generic Function, cond-chroma: Internal generic functions
Generic Function, cond-illuminant: Internal generic functions
Generic Function, cond-message: Internal generic functions
Generic Function, cond-spec: Internal generic functions
Generic Function, cond-value: Internal generic functions
get-allow-other-keys: Internal functions
get-arg-types: Internal functions
get-args: Internal functions
get-aux-args: Internal functions
get-aux-names: Internal functions
get-cieluv-bounds: Internal functions
get-functional: Internal functions
get-key-arg-key-names: Internal functions
get-key-arg-names: Internal functions
get-key-args: Internal functions
get-neighbors: Internal functions
get-primary-converter: Internal functions
get-primary-converter-name: Internal functions
get-return-types: Internal functions

H
hpluv-to-lchuv: Exported functions
hpluv-to-lrgb: Exported functions
hpluv-to-qrgb: Exported functions
hpluv-to-rgb: Exported functions
hpluv-to-rgbpack: Exported functions
hpluv-to-xyz: Exported functions
hsl-to-lrgb: Exported functions
hsl-to-qrgb: Exported functions
hsl-to-rgb: Exported functions
hsl-to-rgbpack: Exported functions
hsl-to-xyz: Exported functions
hsluv-to-lchuv: Exported functions
hsluv-to-lrgb: Exported functions
hsluv-to-qrgb: Exported functions
hsluv-to-rgb: Exported functions
hsluv-to-rgbpack: Exported functions
hsluv-to-xyz: Exported functions
hsv-to-lrgb: Exported functions
hsv-to-qrgb: Exported functions
hsv-to-rgb: Exported functions
hsv-to-rgbpack: Exported functions
hsv-to-xyz: Exported functions

I
illuminant-no-spd-p: Exported functions
illuminant-observer: Exported functions
illuminant-p: Internal functions
illuminant-spectrum: Exported functions
illuminant-to-spectrum-matrix: Internal functions
illuminant-x: Exported functions
illuminant-xy: Exported functions
illuminant-z: Exported functions
internal-real-time: Internal macros
internal-real-time-after-gc: Exported macros
invert-matrix: Exported functions
invert-mhvc-to-lchab: Internal functions

K
key-arg=: Internal functions

L
lab-deltae00: Exported functions
lab-deltae94: Exported functions
lab-deltaeab: Exported functions
lab-deltaecmc: Exported functions
lab-to-lchab: Exported functions
lab-to-xyy: Internal functions
lab-to-xyz: Exported functions
lambda-list=: Internal functions
lchab-to-lab: Exported functions
lchab-to-mhvc-all-integer-case: Internal functions
lchab-to-mhvc-general-case: Internal functions
lchab-to-mhvc-illum-c: Exported functions
lchab-to-mhvc-l-c-integer-case: Internal functions
lchab-to-mhvc-l-integer-case: Internal functions
lchab-to-munsell-illum-c: Exported functions
lchab-to-xyy: Internal functions
lchab-to-xyz: Exported functions
lchuv-to-hpluv: Exported functions
lchuv-to-hsluv: Exported functions
lchuv-to-luv: Exported functions
lchuv-to-xyz: Exported functions
let-converter: Internal macros
linearize: Exported functions
linearize-prophoto: Internal functions
linearize-scrgb-nl: Internal functions
linearize-srgb: Internal functions
lms-to-xyz: Exported functions
lrgb-out-of-gamut-p: Exported functions
lrgb-to-hpluv: Exported functions
lrgb-to-hsl: Exported functions
lrgb-to-hsluv: Exported functions
lrgb-to-hsv: Exported functions
lrgb-to-qrgb: Exported functions
lrgb-to-rgb: Exported functions
lrgb-to-rgbpack: Exported functions
lrgb-to-xyz: Exported functions
lstar-to-munsell-value: Exported functions
lstar-to-y: Exported functions
luv-to-lchuv: Exported functions
luv-to-xyz: Exported functions

M
Macro, defconverter: Exported macros
Macro, defconverters: Exported macros
Macro, define-cat-function: Exported macros
Macro, define-colorspace: Exported macros
Macro, define-functional: Exported macros
Macro, define-primary-converter: Exported macros
Macro, dotimes-unroll: Exported macros
Macro, extend-functional: Exported macros
Macro, internal-real-time: Internal macros
Macro, internal-real-time-after-gc: Exported macros
Macro, let-converter: Internal macros
Macro, nearly-equal-values: Exported macros
Macro, nlet: Exported macros
Macro, pow: Exported macros
Macro, time-after-gc: Exported macros
Macro, time-median: Exported macros
Macro, with-ensuring-type: Exported macros
Macro, with-profiling: Exported macros
make-cat: Exported functions
make-colorspace: Internal functions
make-functional: Internal functions
make-illum-d-spectrum-array: Internal functions
make-illuminant: Exported compiler macros
make-illuminant: Exported functions
make-mb-line: Exported functions
make-observer: Exported functions
make-primary-converter: Internal functions
make-queue: Internal functions
make-rgbspace: Exported functions
max-chroma-for-lh: Internal functions
max-chroma-in-mrd: Exported functions
max-chroma-lchab: Internal functions
max-safe-chroma-for-l: Internal functions
mb-line-distance-from-origin: Exported functions
mb-line-intercept: Internal functions
mb-line-p: Internal functions
mb-line-ray-intersect-distance: Exported functions
mb-line-slope: Internal functions
Method, (setf cond-chroma): Internal generic functions
Method, (setf cond-illuminant): Internal generic functions
Method, (setf cond-message): Internal generic functions
Method, (setf cond-spec): Internal generic functions
Method, (setf cond-value): Internal generic functions
Method, cond-chroma: Internal generic functions
Method, cond-illuminant: Internal generic functions
Method, cond-message: Internal generic functions
Method, cond-spec: Internal generic functions
Method, cond-value: Internal generic functions
mhvc-invalid-p: Internal functions
mhvc-out-of-mrd-p: Exported functions
mhvc-to-cartesian: Internal functions
mhvc-to-lchab-all-integer-case: Internal functions
mhvc-to-lchab-general-case: Internal functions
mhvc-to-lchab-illum-c: Exported functions
mhvc-to-lchab-value-chroma-integer-case: Internal functions
mhvc-to-lchab-value-integer-case: Internal functions
mhvc-to-munsell: Exported functions
mhvc-to-xyy: Internal functions
mhvc-to-xyz: Exported functions
mhvc-to-xyz-illum-c: Exported functions
multiply-mat-mat: Exported functions
multiply-mat-vec: Exported functions
multiply-matrices: Exported functions
munsell-out-of-mrd-p: Exported functions
munsell-to-lchab-illum-c: Exported functions
munsell-to-mhvc: Exported functions
munsell-to-xyy: Internal functions
munsell-to-xyz: Exported functions
munsell-to-xyz-illum-c: Exported functions
munsell-value-to-lstar: Exported functions
munsell-value-to-y: Exported functions

N
nearly-equal: Exported functions
nearly-equal-values: Exported macros
nearly<=: Exported functions
nearly=: Exported functions
nlet: Exported macros

O
observer-begin-wl: Exported functions
observer-cmf: Exported functions
observer-cmf-table: Internal functions
observer-cmf-x: Exported functions
observer-cmf-y: Exported functions
observer-cmf-z: Exported functions
observer-end-wl: Exported functions
observer-p: Internal functions
optimal-spectrum-peak: Exported functions
optimal-spectrum-trough: Exported functions

P
pow: Exported macros
predict-lchab-to-mhvc: Internal functions
primary-converter-allow-other-keys: Internal functions
primary-converter-aux-args: Internal functions
primary-converter-from-colorspace: Internal functions
primary-converter-key-args: Internal functions
primary-converter-name: Internal functions
primary-converter-p: Internal functions
primary-converter-to-colorspace: Internal functions
print-hash-table: Internal functions
print-make-array: Exported functions

Q
qrgb-deltae00: Exported functions
qrgb-deltae94: Exported functions
qrgb-deltaeab: Exported functions
qrgb-deltaecmc: Exported functions
qrgb-out-of-gamut-p: Exported functions
qrgb-to-hpluv: Exported functions
qrgb-to-hsl: Exported functions
qrgb-to-hsluv: Exported functions
qrgb-to-hsv: Exported functions
qrgb-to-lrgb: Exported functions
qrgb-to-munsell-value: Internal functions
qrgb-to-rgb: Exported functions
qrgb-to-rgbpack: Exported functions
qrgb-to-xyz: Exported functions
qrgba-to-rgba: Internal functions
qrgba-to-rgbapack: Internal functions
quantize: Exported functions
queue-list: Internal functions
queue-p: Internal functions
queue-tail: Internal functions

R
radian-to-degree: Exported functions
rgb-out-of-gamut-p: Exported functions
rgb-to-hpluv: Exported functions
rgb-to-hsl: Exported functions
rgb-to-hsluv: Exported functions
rgb-to-hsv: Exported functions
rgb-to-lrgb: Exported functions
rgb-to-qrgb: Exported functions
rgb-to-rgbpack: Exported functions
rgb-to-xyz: Exported functions
rgba-to-qrgba: Internal functions
rgba-to-rgbapack: Internal functions
rgbapack-to-qrgba: Internal functions
rgbapack-to-rgba: Internal functions
rgbpack-to-hpluv: Exported functions
rgbpack-to-hsl: Exported functions
rgbpack-to-hsluv: Exported functions
rgbpack-to-hsv: Exported functions
rgbpack-to-lrgb: Exported functions
rgbpack-to-qrgb: Exported functions
rgbpack-to-rgb: Exported functions
rgbpack-to-xyz: Exported functions
rgbspace-/length: Internal functions
rgbspace-bit-per-channel: Exported functions
rgbspace-delinearizer: Exported functions
rgbspace-from-xyz-matrix: Exported functions
rgbspace-illuminant: Exported functions
rgbspace-length: Internal functions
rgbspace-length/qmax-float: Internal functions
rgbspace-linearizer: Exported functions
rgbspace-lmax: Exported functions
rgbspace-lmin: Exported functions
rgbspace-max: Exported functions
rgbspace-min: Exported functions
rgbspace-normal: Exported functions
rgbspace-p: Internal functions
rgbspace-qmax: Exported functions
rgbspace-qmax-float: Internal functions
rgbspace-qmax-float/length: Internal functions
rgbspace-to-xyz-matrix: Exported functions
rgbspace-xb: Exported functions
rgbspace-xg: Exported functions
rgbspace-xr: Exported functions
rgbspace-yb: Exported functions
rgbspace-yg: Exported functions
rgbspace-yr: Exported functions

S
spectrum-to-xyz: Exported functions
square: Exported functions

T
time-after-gc: Exported macros
time-median: Exported macros

W
with-ensuring-type: Exported macros
with-profiling: Exported macros

X
xyy-to-lab: Internal functions
xyy-to-lchab: Internal functions
xyy-to-xyz: Exported functions
xyz-deltae00: Exported functions
xyz-deltae94: Exported functions
xyz-deltaeab: Exported functions
xyz-deltaecmc: Exported functions
xyz-to-hpluv: Exported functions
xyz-to-hsl: Exported functions
xyz-to-hsluv: Exported functions
xyz-to-hsv: Exported functions
xyz-to-lab: Exported functions
xyz-to-lchab: Exported functions
xyz-to-lchuv: Exported functions
xyz-to-lms: Exported functions
xyz-to-lrgb: Exported functions
xyz-to-luv: Exported functions
xyz-to-mhvc: Exported functions
xyz-to-mhvc-illum-c: Exported functions
xyz-to-munsell: Exported functions
xyz-to-munsell-illum-c: Exported functions
xyz-to-qrgb: Exported functions
xyz-to-rgb: Exported functions
xyz-to-rgbpack: Exported functions
xyz-to-spectrum: Exported functions
xyz-to-xyy: Exported functions

Y
y-to-lstar: Internal functions
y-to-munsell-value: Exported functions

Jump to:   %   (  
A   B   C   D   E   F   G   H   I   K   L   M   N   O   P   Q   R   S   T   W   X   Y  

Next: , Previous: , Up: Indexes   [Contents][Index]

A.3 Variables

Jump to:   *   +   /  
A   B   C   D   E   F   I   K   L   M   N   O   Q   R   S   T   V   X   Y   Z  
Index Entry  Section

*
*bit-length-of-most-positive-fixnum*: Internal special variables
*colorspace-table*: Internal special variables
*dat-dir-path*: Exported special variables
*functional-table*: Internal special variables
*most-positive-non-large-double-float*: Exported special variables
*primary-converter-table*: Internal special variables

+
+360/two-pi+: Exported constants
+adobe+: Exported special variables
+adobe-16+: Exported special variables
+bg-srgb-10+: Exported special variables
+bg-srgb-12+: Exported special variables
+bg-srgb-16+: Exported special variables
+bradford+: Exported special variables
+cat02+: Exported special variables
+cat97s-revised+: Exported special variables
+cie-rgb+: Exported special variables
+cieluv-epsilon+: Internal constants
+cieluv-kappa+: Internal constants
+cmccat2000+: Exported special variables
+cmccat97+: Exported special variables
+cmf-table-cie1931+: Internal special variables
+cmf-table-cie1964+: Internal special variables
+empty-matrix+: Exported special variables
+identity-matrix+: Exported special variables
+illum-a+: Exported special variables
+illum-c+: Exported special variables
+illum-c-table+: Internal special variables
+illum-d50+: Exported special variables
+illum-d65+: Exported special variables
+illum-e+: Exported special variables
+inversed-mrd-table-hc+: Internal special variables
+inversed-mrd-table-v+: Internal special variables
+m-bounds+: Internal constants
+max-chroma-table+: Internal special variables
+max-chroma-table-dark+: Internal special variables
+mrd-table-ch+: Internal special variables
+mrd-table-ch-dark+: Internal special variables
+mrd-table-l+: Internal special variables
+mrd-table-l-dark+: Internal special variables
+ntsc1953+: Exported special variables
+obs-cie1931+: Exported special variables
+obs-cie1964+: Exported special variables
+pal/secam+: Exported special variables
+prophoto+: Exported special variables
+prophoto-12+: Exported special variables
+prophoto-16+: Exported special variables
+s0-table+: Internal special variables
+s1-table+: Internal special variables
+s2-table+: Internal special variables
+scrgb-16+: Exported special variables
+scrgb-nl+: Exported special variables
+srgb+: Exported special variables
+two-pi/360+: Exported constants
+von-kries+: Exported special variables
+wide-gamut+: Exported special variables
+xyz-scaling+: Exported special variables
+y-to-munsell-value-table+: Internal special variables

/
/length: Exported structures

A
allow-other-keys: Exported structures
allow-other-keys: Exported structures
arg-types: Exported structures
args: Exported structures
aux-args: Exported structures
aux-args: Exported structures

B
begin-wl: Exported structures
bit-per-channel: Exported structures

C
chroma: Exported conditions
cmf: Exported structures
cmf-table: Exported structures
cmf-x: Exported structures
cmf-y: Exported structures
cmf-z: Exported structures
colorspace: Exported structures
Constant, +360/two-pi+: Exported constants
Constant, +cieluv-epsilon+: Internal constants
Constant, +cieluv-kappa+: Internal constants
Constant, +m-bounds+: Internal constants
Constant, +two-pi/360+: Exported constants
Constant, two-pi: Exported constants

D
delinearizer: Exported structures
dimension: Exported structures
documentation: Exported structures

E
end-wl: Exported structures

F
fname: Exported structures
from-colorspace: Exported structures
from-xyz-matrix: Exported structures

I
illuminant: Exported conditions
illuminant: Exported structures
intercept: Internal structures
inv-matrix: Exported structures

K
key-args: Exported structures
key-args: Exported structures

L
length: Exported structures
length/qmax-float: Exported structures
linearizer: Exported structures
list: Internal structures
lmax: Exported structures
lmin: Exported structures

M
matrix: Exported structures
max: Exported structures
message: Exported conditions
min: Exported structures

N
name: Exported structures
name: Exported structures
neighbors: Exported structures
normal: Exported structures

O
observer: Exported structures

Q
qmax: Exported structures
qmax-float: Exported structures
qmax-float/length: Exported structures

R
return-types: Exported structures

S
slope: Internal structures
Slot, /length: Exported structures
Slot, allow-other-keys: Exported structures
Slot, allow-other-keys: Exported structures
Slot, arg-types: Exported structures
Slot, args: Exported structures
Slot, aux-args: Exported structures
Slot, aux-args: Exported structures
Slot, begin-wl: Exported structures
Slot, bit-per-channel: Exported structures
Slot, chroma: Exported conditions
Slot, cmf: Exported structures
Slot, cmf-table: Exported structures
Slot, cmf-x: Exported structures
Slot, cmf-y: Exported structures
Slot, cmf-z: Exported structures
Slot, colorspace: Exported structures
Slot, delinearizer: Exported structures
Slot, dimension: Exported structures
Slot, documentation: Exported structures
Slot, end-wl: Exported structures
Slot, fname: Exported structures
Slot, from-colorspace: Exported structures
Slot, from-xyz-matrix: Exported structures
Slot, illuminant: Exported conditions
Slot, illuminant: Exported structures
Slot, intercept: Internal structures
Slot, inv-matrix: Exported structures
Slot, key-args: Exported structures
Slot, key-args: Exported structures
Slot, length: Exported structures
Slot, length/qmax-float: Exported structures
Slot, linearizer: Exported structures
Slot, list: Internal structures
Slot, lmax: Exported structures
Slot, lmin: Exported structures
Slot, matrix: Exported structures
Slot, max: Exported structures
Slot, message: Exported conditions
Slot, min: Exported structures
Slot, name: Exported structures
Slot, name: Exported structures
Slot, neighbors: Exported structures
Slot, normal: Exported structures
Slot, observer: Exported structures
Slot, qmax: Exported structures
Slot, qmax-float: Exported structures
Slot, qmax-float/length: Exported structures
Slot, return-types: Exported structures
Slot, slope: Internal structures
Slot, spec: Exported conditions
Slot, spectrum: Exported structures
Slot, tail: Internal structures
Slot, term: Exported structures
Slot, to-colorspace: Exported structures
Slot, to-spectrum-matrix: Exported structures
Slot, to-xyz-matrix: Exported structures
Slot, value: Exported conditions
Slot, x: Exported structures
Slot, xb: Exported structures
Slot, xg: Exported structures
Slot, xr: Exported structures
Slot, yb: Exported structures
Slot, yg: Exported structures
Slot, yr: Exported structures
Slot, z: Exported structures
spec: Exported conditions
Special Variable, *bit-length-of-most-positive-fixnum*: Internal special variables
Special Variable, *colorspace-table*: Internal special variables
Special Variable, *dat-dir-path*: Exported special variables
Special Variable, *functional-table*: Internal special variables
Special Variable, *most-positive-non-large-double-float*: Exported special variables
Special Variable, *primary-converter-table*: Internal special variables
Special Variable, +adobe+: Exported special variables
Special Variable, +adobe-16+: Exported special variables
Special Variable, +bg-srgb-10+: Exported special variables
Special Variable, +bg-srgb-12+: Exported special variables
Special Variable, +bg-srgb-16+: Exported special variables
Special Variable, +bradford+: Exported special variables
Special Variable, +cat02+: Exported special variables
Special Variable, +cat97s-revised+: Exported special variables
Special Variable, +cie-rgb+: Exported special variables
Special Variable, +cmccat2000+: Exported special variables
Special Variable, +cmccat97+: Exported special variables
Special Variable, +cmf-table-cie1931+: Internal special variables
Special Variable, +cmf-table-cie1964+: Internal special variables
Special Variable, +empty-matrix+: Exported special variables
Special Variable, +identity-matrix+: Exported special variables
Special Variable, +illum-a+: Exported special variables
Special Variable, +illum-c+: Exported special variables
Special Variable, +illum-c-table+: Internal special variables
Special Variable, +illum-d50+: Exported special variables
Special Variable, +illum-d65+: Exported special variables
Special Variable, +illum-e+: Exported special variables
Special Variable, +inversed-mrd-table-hc+: Internal special variables
Special Variable, +inversed-mrd-table-v+: Internal special variables
Special Variable, +max-chroma-table+: Internal special variables
Special Variable, +max-chroma-table-dark+: Internal special variables
Special Variable, +mrd-table-ch+: Internal special variables
Special Variable, +mrd-table-ch-dark+: Internal special variables
Special Variable, +mrd-table-l+: Internal special variables
Special Variable, +mrd-table-l-dark+: Internal special variables
Special Variable, +ntsc1953+: Exported special variables
Special Variable, +obs-cie1931+: Exported special variables
Special Variable, +obs-cie1964+: Exported special variables
Special Variable, +pal/secam+: Exported special variables
Special Variable, +prophoto+: Exported special variables
Special Variable, +prophoto-12+: Exported special variables
Special Variable, +prophoto-16+: Exported special variables
Special Variable, +s0-table+: Internal special variables
Special Variable, +s1-table+: Internal special variables
Special Variable, +s2-table+: Internal special variables
Special Variable, +scrgb-16+: Exported special variables
Special Variable, +scrgb-nl+: Exported special variables
Special Variable, +srgb+: Exported special variables
Special Variable, +von-kries+: Exported special variables
Special Variable, +wide-gamut+: Exported special variables
Special Variable, +xyz-scaling+: Exported special variables
Special Variable, +y-to-munsell-value-table+: Internal special variables
spectrum: Exported structures

T
tail: Internal structures
term: Exported structures
to-colorspace: Exported structures
to-spectrum-matrix: Exported structures
to-xyz-matrix: Exported structures
two-pi: Exported constants

V
value: Exported conditions

X
x: Exported structures
xb: Exported structures
xg: Exported structures
xr: Exported structures

Y
yb: Exported structures
yg: Exported structures
yr: Exported structures

Z
z: Exported structures

Jump to:   *   +   /  
A   B   C   D   E   F   I   K   L   M   N   O   Q   R   S   T   V   X   Y   Z  

Previous: , Up: Indexes   [Contents][Index]

A.4 Data types

Jump to:   C   D   F   I   L   M   N   O   P   Q   R   S   T  
Index Entry  Section

C
cat: Exported structures
colorspace: Exported structures
Condition, invalid-mhvc-error: Exported conditions
Condition, large-approximation-error: Exported conditions
Condition, munsellspec-parse-error: Exported conditions
Condition, no-spd-error: Exported conditions

D
dufy: The dufy system
dufy: The dufy package
dufy/core: The dufy/core system
dufy/core: The dufy/core package
dufy/hsluv: The dufy/hsluv system
dufy/hsluv: The dufy/hsluv package
dufy/internal: The dufy/internal system
dufy/internal: The dufy/internal package
dufy/munsell: The dufy/munsell system
dufy/munsell: The dufy/munsell package

F
functional: Exported structures

I
illuminant: Exported structures
invalid-mhvc-error: Exported conditions

L
large-approximation-error: Exported conditions

M
matrix33: Exported types
mb-line: Internal structures
munsellspec-parse-error: Exported conditions

N
no-spd-error: Exported conditions
non-negative-non-large-double-float: Exported types

O
observer: Exported structures

P
Package, dufy: The dufy package
Package, dufy/core: The dufy/core package
Package, dufy/hsluv: The dufy/hsluv package
Package, dufy/internal: The dufy/internal package
Package, dufy/munsell: The dufy/munsell package
primary-converter: Exported structures

Q
queue: Internal structures

R
rgbspace: Exported structures

S
spectrum-function: Internal types
Structure, cat: Exported structures
Structure, colorspace: Exported structures
Structure, functional: Exported structures
Structure, illuminant: Exported structures
Structure, mb-line: Internal structures
Structure, observer: Exported structures
Structure, primary-converter: Exported structures
Structure, queue: Internal structures
Structure, rgbspace: Exported structures
System, dufy: The dufy system
System, dufy/core: The dufy/core system
System, dufy/hsluv: The dufy/hsluv system
System, dufy/internal: The dufy/internal system
System, dufy/munsell: The dufy/munsell system

T
tuple: Exported types
Type, matrix33: Exported types
Type, non-negative-non-large-double-float: Exported types
Type, spectrum-function: Internal types
Type, tuple: Exported types

Jump to:   C   D   F   I   L   M   N   O   P   Q   R   S   T