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.1.11, generated automatically by Declt version 2.3 "Robert April" on Wed Mar 14 03:49:58 2018 GMT+0.


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

1 Introduction

Dufy - Color Library for Common Lisp

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

Dufy can deal with the following concepts:

Dependencies

All of the dependent libraries can be installed with quicklisp.

Install

The easiest way to install dufy is to use quicklisp:

* (ql:quickload :dufy)

The latest version can also be installed 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 use ASDF directly without quicklisp, you should put the directory of dufy to an appropriate location and do (asdf:load-system :dufy).

Usage

Basics

Tree of Direct Converters

converter_tree graph G { graph [ labelloc = "t", label = "Tree of Primary Converters", fontsize = 16 ]; node [shape = "box", fontname = "helvetica"] xyz [ label = "XYZ" ] xyy [ label = "XYY\n(xyY)" ] lrgb [ label = "LRGB\n(linear RGB)" ] rgb [ label = "RGB\n(gamma-corrected RGB)" ] qrgb [ label = "QRGB\n(quantized RGB)" ] hex [ label = "HEX" ] lab [ label = "LAB" ] lchab [ label = "LCHAB" ] luv [ label = "LUV" ] lchuv [ label = "LCHUV" ] mhvc [ label = "MHVC\n(Munsell 3-number spec.)" ] munsell [ label = "MUNSELL\n(Munsell string spec.)" ] hsv [ label = "HSV" ] hsl [ label = "HSL" ] spectrum [ label = "SPECTRUM" ] lms [ label = "LMS" ] xyz -- xyy xyz -- lms xyz -- spectrum xyz -- lrgb lrgb -- rgb rgb -- qrgb qrgb -- hex
xyz -- lab
lab -- lchab
xyz -- luv
luv -- lchuv
rgb -- hsv
rgb -- hsl

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

} converter_tree

The fundamental color space of dufy is CIE XYZ (Illuminant D65): There are xyz-to- and -to-xyz converters for all other 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.3731384408806708d0 ; X
   0.701492216468595d0  ; Y
   1.060034922742541d0  ; Z
   
* (multiple-value-call #'dufy:xyz-to-qrgb
    (dufy:lab-to-xyz 87.07 -78.15 -20.51))
=> -169 ; R
   255  ; G
   255  ; B

* (multiple-value-call #'dufy:xyz-to-qrgb
    (dufy:lab-to-xyz 87.07 -78.15 -20.51)
    :clamp t)
=> 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+)  ; sRGB
=> -169
   255
   255

* (dufy:xyz-to-qrgb 0.37314 0.70144 1.0601 :rgbspace dufy:+adobe+) ; Adobe RGB
=> 2
   255
   255
;; In the Adobe RGB space the color is within gamut.

Likewise most converters regard the implicit standard 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 dufy:+illum-d65+) ; Illuminant D65
=> 0.9504285453771808d0
   1.0d0
   1.0889003707981282d0
   ;; the white point of standard illuminant D65

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

Munsell Color System

Dufy can handle the Munsell color system in the same way as other color spaces:

* (dufy:munsell-to-xyz "3.2R 4.5/6.1")
=> 0.19362651748394688d0
   0.15142718526032797d0
   0.12281280741243561d0
   
* (dufy:munsell-to-xyz "3.2R 4.5/86.1")
=> 1.7829826744317545d0
   0.13203741531162577d0
   -0.02903836122088697d0

The converters are based on Munsell renotation data. In the second example munsell-to-xyz extrapolate the colors far out of the data (and the MacAdam limits, of course), which is meaningless in many cases but will be necessary to process the boundary colors.

* (dufy:munsell-to-mhvc "3.2R 4.5/6.1")
=> 1.28d0
   4.5d0
   6.1d0
* (dufy:mhvc-to-xyz 1.28 4.5 6.1)
=> 0.19362651748394688d0
   0.15142718526032797d0
   0.12281280741243561d0

munsell is the standard string notation of Munsell color. mhvc is its three-number expression, which will be easier to deal with in some cases. A hue number of mhvc corresponds to a hue string of munsell as follows:

| Hue in mhvc | Hue in munsell | | -------------------- | --------------------- | | 0 to 4 | 10RP (=0R) to 10R (=0YR) | | 4 to 8 | 10R (=0YR) to 10YR (=0Y) | | ... | ... | | 36 to 40 | 10P (=0RP) to 10RP (=0R) |

The hue of of mhvc is a circle group: i.e. hues outside the interval [0, 40] are acceptable:

* (dufy:mhvc-to-munsell -400.0 4.5 6.1) ; the same as (0.0 4.5 6.1)
=> "0.00R 4.50/6.10"

There are some more points to remember: First, since the Munsell renotation data is measured not with illuminant D65, but with C, the converters like mhvc-to-xyz do the (Bradford) transformation from C to D65. If you want to use a direct converter with illuminant C, for e.g. accuracy or efficiency, the following converters are available under illuminant C: munsell-to-lchab, lchab-to-munsell, mhvc-to-lchab, lchab-to-mhvc mhvc-to-xyz-illum-c.

Second, if you want to know the gamut of the Munsell renotation data, you can find the maximum chroma for a given hue and value by max-chroma:

* (dufy:max-chroma 1.28 4.5)
=> 24
* (dufy:mhvc-to-xyz 1.28 4.5 6.1)
=> 0.19362651667300654d0
   0.1514271852669221d0
   0.12281280847832986d0 ; interpolated, since 6.1 < 24
* (dufy:mhvc-to-xyz 1.28 4.5 24.1)
=> 0.378725146277375d0
   0.14933867420177885d0
   0.05430213863814263d0 ; extrapolated, since 24.1 > 24

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

2 Systems

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


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

2.1 dufy

Author

Hugo I.

License

MIT

Description

Color library for Common Lisp

Version

0.1.11

Dependencies
Source

dufy.asd (file)

Components

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/


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

3.2 dufy/src

Dependency

dat (module)

Parent

dufy (system)

Location

src/

Components

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

4 Files

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


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

4.1 Lisp


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

4.1.1 dufy.asd

Location

dufy.asd

Systems

dufy (system)


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/src/fundamental-data.lisp

Dependency

package.lisp (file)

Parent

src (module)

Location

src/fundamental-data.lisp

Internal Definitions

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

4.1.4 dufy/src/general.lisp

Dependency

package.lisp (file)

Parent

src (module)

Location

src/general.lisp

Exported Definitions
Internal Definitions

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

4.1.5 dufy/src/xyz.lisp

Dependencies
Parent

src (module)

Location

src/xyz.lisp

Exported Definitions
Internal Definitions

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

4.1.6 dufy/src/dufy.lisp

Dependencies
Parent

src (module)

Location

src/dufy.lisp

Exported Definitions
Internal Definitions

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

4.1.7 dufy/src/deltae.lisp

Dependencies
Parent

src (module)

Location

src/deltae.lisp

Exported Definitions
Internal Definitions

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

4.1.8 dufy/src/munsell-renotation-data.lisp

Parent

src (module)

Location

src/munsell-renotation-data.lisp

Internal Definitions

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

4.1.9 dufy/src/munsell.lisp

Dependencies
Parent

src (module)

Location

src/munsell.lisp

Exported Definitions
Internal Definitions

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

5 Packages

Packages are listed by definition order.


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

5.1 dufy

Source

package.lisp (file)

Use 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: two-pi
Package

dufy

Source

general.lisp (file)


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

6.1.2 Special variables

Special Variable: *maximum-chroma*

The largest chroma which the converters accepts. It is less than MOST-POSITIVE-DOUBLE-FLOAT because of efficiency: e.g. in SBCL (64-bit) it is desirable that a float F
fulfills (typep (round F) ’(SIGNED-BYTE 64)

Package

dufy

Source

munsell.lisp (file)

Special Variable: +adobe+

Adobe RGB (1998), 8-bit per channel

Package

dufy

Source

dufy.lisp (file)

Special Variable: +adobe-16+

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

Package

dufy

Source

dufy.lisp (file)

Special Variable: +bg-srgb-10+

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

Package

dufy

Source

dufy.lisp (file)

Special Variable: +bg-srgb-12+

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

Package

dufy

Source

dufy.lisp (file)

Special Variable: +bg-srgb-16+

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

Package

dufy

Source

dufy.lisp (file)

Special Variable: +bradford+
Package

dufy

Source

xyz.lisp (file)

Special Variable: +cat02+
Package

dufy

Source

xyz.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

Source

xyz.lisp (file)

Special Variable: +cmccat2000+
Package

dufy

Source

xyz.lisp (file)

Special Variable: +cmccat97+
Package

dufy

Source

xyz.lisp (file)

Special Variable: +illum-a+
Package

dufy

Source

xyz.lisp (file)

Special Variable: +illum-c+
Package

dufy

Source

xyz.lisp (file)

Special Variable: +illum-d50+
Package

dufy

Source

xyz.lisp (file)

Special Variable: +illum-d65+
Package

dufy

Source

xyz.lisp (file)

Special Variable: +illum-e+
Package

dufy

Source

xyz.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

Source

dufy.lisp (file)

Special Variable: +obs-cie1931+
Package

dufy

Source

xyz.lisp (file)

Special Variable: +obs-cie1964+
Package

dufy

Source

xyz.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

Source

dufy.lisp (file)

Special Variable: +prophoto+

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

Package

dufy

Source

dufy.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

Source

dufy.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

Source

dufy.lisp (file)

Special Variable: +scrgb-16+

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

Package

dufy

Source

dufy.lisp (file)

Special Variable: +scrgb-nl+

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

Package

dufy

Source

dufy.lisp (file)

Special Variable: +srgb+

sRGB

Package

dufy

Source

dufy.lisp (file)

Special Variable: +von-kries+
Package

dufy

Source

xyz.lisp (file)

Special Variable: +wide-gamut+

Wide-gamut RGB, 8-bit per channel.

Package

dufy

Source

dufy.lisp (file)

Special Variable: +xyz-scaling+
Package

dufy

Source

xyz.lisp (file)


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

6.1.3 Macros

Macro: def-cat-function NAME FROM-ILLUMINANT TO-ILLUMINANT &optional TMATRIX

Macro version of GEN-CAT-FUNCTION.

Package

dufy

Source

xyz.lisp (file)


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

6.1.4 Functions

Function: bb-spectrum WAVELENGTH-NM &optional TEMPERATURE

Spectrum function of a blackbody, which is not normalized.

Package

dufy

Source

xyz.lisp (file)

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

dufy

Source

xyz.lisp (file)

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

dufy

Source

xyz.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

Source

general.lisp (file)

Function: circular-lerp COEF THETA1 THETA2 &optional PERIMETER

Counterclockwise linear interpolation from THETA1 to THETA2 in a circle group. It 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

Source

general.lisp (file)

Function: circular-member X THETA1 THETA2 &optional PERIMETER

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

Package

dufy

Source

general.lisp (file)

Function: circular-nearer THETA1 X THETA2 &optional PERIMETER

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

Package

dufy

Source

general.lisp (file)

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

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

Source

dufy.lisp (file)

Function: delinearize X &optional RGBSPACE
Package

dufy

Source

dufy.lisp (file)

Function: deltae L1 A1 B1 L2 A2 B2
Package

dufy

Source

deltae.lisp (file)

Function: deltae00 L1 A1 B1 L2 A2 B2
Package

dufy

Source

deltae.lisp (file)

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

APPLICATION must be :graphic-arts or :textiles

Package

dufy

Source

deltae.lisp (file)

Function: flat-spectrum WAVELENGTH-NM

(constantly 1d0)

Package

dufy

Source

xyz.lisp (file)

Function: gen-cat-function FROM-ILLUMINANT TO-ILLUMINANT &optional TMATRIX

Returns a chromatic adaptation function on XYZ space:
> (funcall (gen-cat-function +illum-d65+ +illum-e+) 0.9504d0 1.0d0 1.0889d0) => (0.9999700272441295d0 0.999998887365445d0 0.9999997282885571d0)

Package

dufy

Source

xyz.lisp (file)

Function: gen-delinearizer GAMMA
Package

dufy

Source

dufy.lisp (file)

Function: gen-illum-d-spectrum TEMPERATURE

Generates the spectrum of the illuminant series D for a given temperature.

Package

dufy

Source

xyz.lisp (file)

Function: gen-linearizer GAMMA
Package

dufy

Source

dufy.lisp (file)

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

Note: SPECTRUM-ARRAY must be (SIMPLE-ARRAY DOUBLE-FLOAT (*)).

Returns a spectral power distribution
function, #’(lambda (wavelength-nm) ...), by linearly interpolating SPECTRUM-ARRAY which can have arbitrary length. The FTYPE of returned function is (FUNCTION REAL DOUBLE-FLOAT).

Package

dufy

Source

xyz.lisp (file)

Function: hex-to-qrgb HEX &optional RGBSPACE
Package

dufy

Source

dufy.lisp (file)

Function: hex-to-rgb HEX &optional RGBSPACE
Package

dufy

Source

dufy.lisp (file)

Function: hex-to-xyz HEX &optional RGBSPACE
Package

dufy

Source

dufy.lisp (file)

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

dufy

Source

dufy.lisp (file)

Function: hsl-to-rgb HUE SAT LUM

HUE is in the circle group R/360. The nominal range of SAT and VAL is [0, 1]; all the real values outside the interval are also acceptable.

Package

dufy

Source

dufy.lisp (file)

Function: hsl-to-xyz HUE SAT LUM &optional RGBSPACE
Package

dufy

Source

dufy.lisp (file)

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

dufy

Source

dufy.lisp (file)

Function: hsv-to-rgb HUE SAT VAL

HUE is in the circle group R/360. The nominal range of SAT and VAL is [0, 1]; all the real values outside the interval are also acceptable.

Package

dufy

Source

dufy.lisp (file)

Function: hsv-to-xyz HUE SAT VAL &optional RGBSPACE
Package

dufy

Source

dufy.lisp (file)

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

dufy

Source

xyz.lisp (file)

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

dufy

Source

xyz.lisp (file)

Function: illuminant-small-y INSTANCE
Function: (setf illuminant-small-y) VALUE INSTANCE
Package

dufy

Source

xyz.lisp (file)

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

dufy

Source

xyz.lisp (file)

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

dufy

Source

xyz.lisp (file)

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

dufy

Source

xyz.lisp (file)

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

dufy

Source

xyz.lisp (file)

Function: lab-to-lchab LSTAR ASTAR BSTAR
Package

dufy

Source

dufy.lisp (file)

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

dufy

Source

dufy.lisp (file)

Function: lchab-to-lab LSTAR CSTARAB HAB
Package

dufy

Source

dufy.lisp (file)

Function: lchab-to-mhvc LSTAR CSTARAB HAB &key MAX-ITERATION FACTOR THRESHOLD

Illuminant C.
An inverter of MHVC-TO-LCHAB with a simple iteration algorithm: V := LSTAR-TO-MUNSELL-VALUE(LSTAR);
H_(n+1) := H_n + factor * delta(H_n);
C_(n+1) := C_n + factor * delta(C_n),
where delta(H_n) and delta(C_n) is internally calculated at every step. H and C could diverge, if FACTOR is too large. The return values are as follows:
1. If max(delta(H_n), delta(C_n)) falls below THRESHOLD:
=> H V C NUMBER-OF-ITERATION.
2. If the number of iteration exceeds MAX-ITERATION:
=> H V C MAX-ITERATION.
In other words: The inversion has failed, if the second value is equal to MAX-ITERATION.

Package

dufy

Source

munsell.lisp (file)

Function: lchab-to-munsell LSTAR CSTARAB HAB &key MAX-ITERATION FACTOR THRESHOLD DIGITS

Illuminant C.

Package

dufy

Source

munsell.lisp (file)

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

dufy

Source

dufy.lisp (file)

Function: lchuv-to-luv LSTAR CSTARUV HUV
Package

dufy

Source

dufy.lisp (file)

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

dufy

Source

dufy.lisp (file)

Function: linearize X &optional RGBSPACE
Package

dufy

Source

dufy.lisp (file)

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

Note: The default illuminant is **not** D65; if ILLUMINANT is NIL, the transform is virtually equivalent to that of illuminant E.

Package

dufy

Source

xyz.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

Source

dufy.lisp (file)

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

dufy

Source

dufy.lisp (file)

Function: lrgb-to-xyz LR LG LB &optional RGBSPACE
Package

dufy

Source

dufy.lisp (file)

Function: lstar-to-y LSTAR
Package

dufy

Source

dufy.lisp (file)

Function: luv-to-lchuv LSTAR USTAR VSTAR
Package

dufy

Source

dufy.lisp (file)

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

dufy

Source

dufy.lisp (file)

Function: make-cat MAT
Package

dufy

Source

xyz.lisp (file)

Function: make-illuminant SMALL-X SMALL-Y &optional SPECTRUM OBSERVER

Defines an illuminant based on a white point. No error occurs, even if the given (small-x, small-y) and SPD contradicts to each other.

Package

dufy

Source

xyz.lisp (file)

Function: make-illuminant-by-spd SPECTRUM &optional OBSERVER

Defines an illuminant based on a spectral power distribution. The white point is automatically calculated.

Package

dufy

Source

xyz.lisp (file)

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

Defines an observer based on CMF arrays, which must be (SIMPLE-ARRAY DOUBLE-FLOAT (* 3)).

Package

dufy

Source

xyz.lisp (file)

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

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

Package

dufy

Source

dufy.lisp (file)

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

Returns the largest chroma in the Munsell renotation data.

Package

dufy

Source

munsell.lisp (file)

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

Judge if MHVC is out of the Munsell renotation data.

Package

dufy

Source

munsell.lisp (file)

Function: mhvc-to-lchab HUE40 VALUE CHROMA

Note: The Standard Illuminant is C.

Package

dufy

Source

munsell.lisp (file)

Function: mhvc-to-lrgb HUE40 VALUE CHROMA &optional RGBSPACE

The standard illuminant is D65: that of RGBSPACE must also be D65.

Package

dufy

Source

munsell.lisp (file)

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

dufy

Source

munsell.lisp (file)

Function: mhvc-to-qrgb HUE40 VALUE CHROMA &key RGBSPACE CLAMP

The standard illuminant is D65: that of RGBSPACE must also be D65.

Package

dufy

Source

munsell.lisp (file)

Function: mhvc-to-xyy HUE40 VALUE CHROMA

Illuminant D65.

Package

dufy

Source

munsell.lisp (file)

Function: mhvc-to-xyz HUE40 VALUE CHROMA

Illuminant D65. It causes an error by Bradford transformation, since the Munsell Renotation Data is measured under the Illuminant C.

Package

dufy

Source

munsell.lisp (file)

Function: mhvc-to-xyz-illum-c HUE40 VALUE CHROMA

Illuminant C. (Munsell Renotation Data is measured under the Illuminant C.)

Package

dufy

Source

munsell.lisp (file)

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

dufy

Source

munsell.lisp (file)

Function: munsell-to-lchab MUNSELLSPEC

Illuminant C.

Package

dufy

Source

munsell.lisp (file)

Function: munsell-to-mhvc MUNSELLSPEC

Usage Example:
CL-USER> (dufy:munsell-to-mhvc "0.02RP 0.9/3.5")
=> (36.00799999982119d0 0.8999999761581421d0 3.5d0)
Many other notations are acceptable as number designations; an ugly specification as follows are also available:
CL-USER> (dufy:munsell-to-mhvc "2d-2RP .9/ #x0ffffff")
=> (36.008d0 0.8999999761581421d0 1.6777215d7)
but the capital letters and ’/’ are reserved:
CL-USER> (dufy:munsell-to-mhvc "2D-2RP 9/10 / #x0FFFFFF")
=> ERROR,

Package

dufy

Source

munsell.lisp (file)

Function: munsell-to-qrgb MUNSELLSPEC &key RGBSPACE CLAMP

Illuminant D65; the standard illuminant of RGBSPACE must also be D65.

Package

dufy

Source

munsell.lisp (file)

Function: munsell-to-xyy MUNSELLSPEC

Illuminant D65.

Package

dufy

Source

munsell.lisp (file)

Function: munsell-to-xyz MUNSELLSPEC

Illuminant D65.

Package

dufy

Source

munsell.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:

Package

dufy

Source

munsell.lisp (file)

Function: nearly-equal THRESHOLD LST1 LST2
Package

dufy

Source

general.lisp (file)

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

dufy

Source

general.lisp (file)

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

dufy

Source

general.lisp (file)

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

dufy

Source

xyz.lisp (file)

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

dufy

Source

xyz.lisp (file)

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

dufy

Source

xyz.lisp (file)

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

dufy

Source

xyz.lisp (file)

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

dufy

Source

xyz.lisp (file)

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

dufy

Source

xyz.lisp (file)

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

dufy

Source

xyz.lisp (file)

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

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

Package

dufy

Source

xyz.lisp (file)

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

dufy

Source

deltae.lisp (file)

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

dufy

Source

deltae.lisp (file)

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

dufy

Source

deltae.lisp (file)

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

dufy

Source

dufy.lisp (file)

Function: qrgb-to-hex QR QG QB &optional RGBSPACE
Package

dufy

Source

dufy.lisp (file)

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

dufy

Source

dufy.lisp (file)

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

dufy

Source

dufy.lisp (file)

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

dufy

Source

dufy.lisp (file)

Function: qrgb-to-xyz QR QG QB &optional RGBSPACE
Package

dufy

Source

dufy.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

Source

dufy.lisp (file)

Function: rgb-to-hex R G B &optional RGBSPACE
Package

dufy

Source

dufy.lisp (file)

Function: rgb-to-hsl R G B
Package

dufy

Source

dufy.lisp (file)

Function: rgb-to-hsv R G B
Package

dufy

Source

dufy.lisp (file)

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

dufy

Source

dufy.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} ({0, 1, ..., 255}, typically), though it accepts
all the real values.

Package

dufy

Source

dufy.lisp (file)

Function: rgb-to-xyz R G B &optional RGBSPACE
Package

dufy

Source

dufy.lisp (file)

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

dufy

Source

dufy.lisp (file)

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

dufy

Source

dufy.lisp (file)

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

dufy

Source

dufy.lisp (file)

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

dufy

Source

dufy.lisp (file)

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

dufy

Source

dufy.lisp (file)

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

dufy

Source

dufy.lisp (file)

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

dufy

Source

dufy.lisp (file)

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

dufy

Source

dufy.lisp (file)

Function: rgbspace-qmax INSTANCE
Package

dufy

Source

dufy.lisp (file)

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

dufy

Source

dufy.lisp (file)

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

dufy

Source

dufy.lisp (file)

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

dufy

Source

dufy.lisp (file)

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

dufy

Source

dufy.lisp (file)

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

dufy

Source

dufy.lisp (file)

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

dufy

Source

dufy.lisp (file)

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

dufy

Source

dufy.lisp (file)

Function: spectrum-sum SPECTRUM &key WL-BEGIN WL-END BAND
Package

dufy

Source

xyz.lisp (file)

Function: spectrum-to-xyz SPECTRUM &optional ILLUMINANT

Computes XYZ values from SPECTRUM in reflective and transmissive case. The function SPECTRUM must be defined at least in [360, 830]. The return values are not normalized.

Package

dufy

Source

xyz.lisp (file)

Function: subtract-with-mod X Y &optional DIVISOR

(X - Y) mod DIVISOR.

Package

dufy

Source

general.lisp (file)

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

xyY to XYZ.

Package

dufy

Source

xyz.lisp (file)

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

dufy

Source

deltae.lisp (file)

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

dufy

Source

deltae.lisp (file)

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

dufy

Source

deltae.lisp (file)

Function: xyz-to-hex X Y Z &optional RGBSPACE
Package

dufy

Source

dufy.lisp (file)

Function: xyz-to-hsl X Y Z &optional RGBSPACE
Package

dufy

Source

dufy.lisp (file)

Function: xyz-to-hsv X Y Z &optional RGBSPACE
Package

dufy

Source

dufy.lisp (file)

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

dufy

Source

dufy.lisp (file)

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

dufy

Source

dufy.lisp (file)

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

dufy

Source

dufy.lisp (file)

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

Note: The default illuminant is **not** D65; if ILLUMINANT is NIL, the transform is virtually equivalent to that of illuminant E.

Package

dufy

Source

xyz.lisp (file)

Function: xyz-to-lrgb X Y Z &optional RGBSPACE
Package

dufy

Source

dufy.lisp (file)

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

dufy

Source

dufy.lisp (file)

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

Illuminant D65. including Bradford transformation.

Package

dufy

Source

munsell.lisp (file)

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

Illuminant D65. including Bradford transformation.

Package

dufy

Source

munsell.lisp (file)

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

dufy

Source

dufy.lisp (file)

Function: xyz-to-rgb X Y Z &optional RGBSPACE
Package

dufy

Source

dufy.lisp (file)

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

Converts XYZ to spectrum, which is, of course, a spectrum among many.

Package

dufy

Source

xyz.lisp (file)

Function: xyz-to-xyy X Y Z
Package

dufy

Source

xyz.lisp (file)

Function: y-to-munsell-value Y

Interpolates the inversion table of MUNSELL-VALUE-TO-Y linearly, whose band width is 10^-3. The
error, (abs (- (y (munsell-value-to-y (y-to-munsell-value y))))), is smaller than 10^-5.

Package

dufy

Source

munsell.lisp (file)


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

6.1.5 Structures

Structure: cat ()

Model of chromatic adaptation transformation. Currently only linear models are available.

Package

dufy

Source

xyz.lisp (file)

Direct superclasses

structure-object (structure)

Direct slots
Slot: matrix
Type

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

Initform

dufy::+empty-matrix+

Readers

cat-matrix (function)

Writers

(setf cat-matrix) (function)

Slot: inv-matrix
Type

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

Initform

dufy::+empty-matrix+

Readers

cat-inv-matrix (function)

Writers

(setf cat-inv-matrix) (function)

Structure: illuminant ()
Package

dufy

Source

xyz.lisp (file)

Direct superclasses

structure-object (structure)

Direct slots
Slot: small-x
Type

double-float

Initform

0.0

Readers

illuminant-small-x (function)

Writers

(setf illuminant-small-x) (function)

Slot: small-y
Type

double-float

Initform

0.0

Readers

illuminant-small-y (function)

Writers

(setf illuminant-small-y) (function)

Slot: x
Type

double-float

Initform

0.0

Readers

illuminant-x (function)

Writers

(setf illuminant-x) (function)

Slot: y
Type

double-float

Initform

0.0

Readers

illuminant-y (function)

Writers

(setf illuminant-y) (function)

Slot: z
Type

double-float

Initform

0.0

Readers

illuminant-z (function)

Writers

(setf illuminant-z) (function)

Slot: spectrum
Type

function

Initform

(function dufy::empty-function)

Readers

illuminant-spectrum (function)

Writers

(setf illuminant-spectrum) (function)

Slot: observer
Type

dufy:observer

Initform

dufy:+obs-cie1931+

Readers

illuminant-observer (function)

Writers

(setf illuminant-observer) (function)

Slot: to-spectrum-matrix
Type

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

Initform

dufy::+empty-matrix+

Readers

illuminant-to-spectrum-matrix (function)

Writers

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

Structure: observer ()

Structure of color matching functions.

Package

dufy

Source

xyz.lisp (file)

Direct superclasses

structure-object (structure)

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-arr
Type

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

Initform

(make-array (quote (471 3)) :element-type (quote double-float))

Readers

observer-cmf-arr (function)

Writers

(setf observer-cmf-arr) (function)

Slot: cmf-x
Type

function

Initform

(function dufy::empty-function)

Readers

observer-cmf-x (function)

Writers

(setf observer-cmf-x) (function)

Slot: cmf-y
Type

function

Initform

(function dufy::empty-function)

Readers

observer-cmf-y (function)

Writers

(setf observer-cmf-y) (function)

Slot: cmf-z
Type

function

Initform

(function dufy::empty-function)

Readers

observer-cmf-z (function)

Writers

(setf observer-cmf-z) (function)

Slot: cmf
Type

function

Initform

(function dufy::empty-function)

Readers

observer-cmf (function)

Writers

(setf observer-cmf) (function)

Structure: rgbspace ()

Structure of RGB space, including encoding characteristics

Package

dufy

Source

dufy.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:illuminant

Initform

dufy:+illum-d65+

Readers

rgbspace-illuminant (function)

Writers

(setf rgbspace-illuminant) (function)

Slot: to-xyz-matrix
Type

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

Initform

dufy::+identity-matrix+

Readers

rgbspace-to-xyz-matrix (function)

Writers

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

Slot: from-xyz-matrix
Type

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

Initform

dufy::+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: llen
Type

double-float

Initform

1.0d0

Readers

rgbspace-llen (function)

Writers

(setf rgbspace-llen) (function)

Slot: linearizer
Type

(function * double-float)

Initform

(alexandria.0.dev:rcurry (function float) 1.0d0)

Readers

rgbspace-linearizer (function)

Writers

(setf rgbspace-linearizer) (function)

Slot: delinearizer
Type

(function * double-float)

Initform

(alexandria.0.dev: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: len
Type

double-float

Initform

1.0d0

Readers

rgbspace-len (function)

Writers

(setf rgbspace-len) (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: len/qmax-float
Type

double-float

Initform

(float 1/255 1.0d0)

Readers

rgbspace-len/qmax-float (function)

Writers

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

Slot: qmax-float/len
Type

double-float

Initform

255.0d0

Readers

rgbspace-qmax-float/len (function)

Writers

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


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

6.2 Internal definitions


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

6.2.1 Constants

Constant: +360/two-pi+
Package

dufy

Source

dufy.lisp (file)

Constant: +two-pi/360+
Package

dufy

Source

dufy.lisp (file)


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

6.2.2 Special variables

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

dufy

Source

munsell.lisp (file)

Special Variable: +c-to-d65-mat+
Package

dufy

Source

munsell.lisp (file)

Special Variable: +d65-to-c-mat+
Package

dufy

Source

munsell.lisp (file)

Special Variable: +empty-matrix+

Used instead of NIL

Package

dufy

Source

general.lisp (file)

Special Variable: +identity-matrix+
Package

dufy

Source

general.lisp (file)

Special Variable: +illum-b+
Package

dufy

Source

xyz.lisp (file)

Special Variable: +illum-c-arr+
Package

dufy

Source

xyz.lisp (file)

Special Variable: +s0-arr+
Package

dufy

Source

xyz.lisp (file)

Special Variable: +s0-func+
Package

dufy

Source

xyz.lisp (file)

Special Variable: +s1-arr+
Package

dufy

Source

xyz.lisp (file)

Special Variable: +s1-func+
Package

dufy

Source

xyz.lisp (file)

Special Variable: +s2-arr+
Package

dufy

Source

xyz.lisp (file)

Special Variable: +s2-func+
Package

dufy

Source

xyz.lisp (file)

Special Variable: cmf-arr-cie1931
Package

dufy

Source

fundamental-data.lisp (file)

Special Variable: cmf-arr-cie1964
Package

dufy

Source

fundamental-data.lisp (file)

Special Variable: max-chroma-arr
Package

dufy

Source

munsell-renotation-data.lisp (file)

Special Variable: max-chroma-arr-dark
Package

dufy

Source

munsell-renotation-data.lisp (file)

Special Variable: mrd-array-lchab
Package

dufy

Source

munsell-renotation-data.lisp (file)

Special Variable: mrd-array-lchab-dark
Package

dufy

Source

munsell-renotation-data.lisp (file)

Special Variable: y-to-munsell-value-arr
Package

dufy

Source

fundamental-data.lisp (file)


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

6.2.3 Macros

Macro: defdeltae NAME ARGS &body BODY

Only &key arguments are allowed in sub-args. The following symbols cannot be used in ARGS: x1 y1 z1 x2 y2 z2 r1 g1 b1 r2 g2 b2

Package

dufy

Source

deltae.lisp (file)

Macro: simple-time &body BODY
Package

dufy

Source

general.lisp (file)


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

6.2.4 Functions

Function: $make-cat &key (MATRIX MATRIX) (INV-MATRIX INV-MATRIX)
Package

dufy

Source

xyz.lisp (file)

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

dufy

Source

xyz.lisp (file)

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

dufy

Source

xyz.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) (LLEN LLEN) (LINEARIZER LINEARIZER) (DELINEARIZER DELINEARIZER) (MIN MIN) (MAX MAX) (LEN LEN) (NORMAL NORMAL) (BIT-PER-CHANNEL BIT-PER-CHANNEL) (QMAX QMAX) (QMAX-FLOAT QMAX-FLOAT) (LEN/QMAX-FLOAT LEN/QMAX-FLOAT) (QMAX-FLOAT/LEN QMAX-FLOAT/LEN)
Package

dufy

Source

dufy.lisp (file)

Function: bench-deltae00 &optional NUM
Package

dufy

Source

deltae.lisp (file)

Function: bench-hex-to-lchuv &optional NUM
Package

dufy

Source

dufy.lisp (file)

Function: bench-lchuv-to-hex &optional NUM
Package

dufy

Source

dufy.lisp (file)

Function: bench-mhvc-to-qrgb &optional NUM
Package

dufy

Source

munsell.lisp (file)

Function: c-to-d65 X Y Z
Package

dufy

Source

munsell.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

Source

xyz.lisp (file)

Function: calc-to-spectrum-matrix ILLUM-SPECTRUM OBSERVER

Used for XYZ-to-spectrum conversion.

Package

dufy

Source

xyz.lisp (file)

Function: calc-uvprime X Y
Package

dufy

Source

dufy.lisp (file)

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

dufy

Source

dufy.lisp (file)

Function: cat-p OBJECT
Package

dufy

Source

xyz.lisp (file)

Function: circular-delta THETA1 THETA2
Package

dufy

Source

munsell.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 return value slightly exceeds the interval [THETA1, THETA2], due to floating-point error. If that is incovenient, use CIRCULAR-LERP instead.

Package

dufy

Source

general.lisp (file)

Function: copy-cat INSTANCE
Package

dufy

Source

xyz.lisp (file)

Function: copy-observer INSTANCE
Package

dufy

Source

xyz.lisp (file)

Function: d65-to-c X Y Z
Package

dufy

Source

munsell.lisp (file)

Function: delinearize-prophoto X
Package

dufy

Source

dufy.lisp (file)

Function: delinearize-scrgb-nl X
Package

dufy

Source

dufy.lisp (file)

Function: delinearize-srgb X

actually the same as bg-sRGB

Package

dufy

Source

dufy.lisp (file)

Function: empty-function ()
Package

dufy

Source

general.lisp (file)

Function: function-f X
Package

dufy

Source

dufy.lisp (file)

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

dufy

Source

xyz.lisp (file)

Function: illuminant-no-spd-p ILLUMINANT
Package

dufy

Source

xyz.lisp (file)

Function: illuminant-p OBJECT
Package

dufy

Source

xyz.lisp (file)

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

dufy

Source

xyz.lisp (file)

Function: invert-matrix33 MAT
Package

dufy

Source

general.lisp (file)

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

Illuminant C.

Package

dufy

Source

munsell.lisp (file)

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

dufy

Source

dufy.lisp (file)

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

dufy

Source

dufy.lisp (file)

Function: linearize-prophoto X
Package

dufy

Source

dufy.lisp (file)

Function: linearize-scrgb-nl X
Package

dufy

Source

dufy.lisp (file)

Function: linearize-srgb X

actually the same as bg-sRGB

Package

dufy

Source

dufy.lisp (file)

Function: lstar-to-munsell-value LSTAR
Package

dufy

Source

munsell.lisp (file)

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

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

Package

dufy

Source

munsell.lisp (file)

Function: mhvc-invalid-p HUE40 VALUE CHROMA

Judge if MHVC is invalid.

Package

dufy

Source

munsell.lisp (file)

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

dufy

Source

munsell.lisp (file)

Function: mhvc-to-lchab-simplest-case HUE40 TMP-VALUE HALF-CHROMA &optional DARK

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

Package

dufy

Source

munsell.lisp (file)

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

dufy

Source

munsell.lisp (file)

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

dufy

Source

munsell.lisp (file)

Function: modify-float-error X EPSILON
Package

dufy

Source

munsell.lisp (file)

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

dufy

Source

general.lisp (file)

Function: munsell-value-to-achromatic-xyy V

Illuminant C.

Package

dufy

Source

munsell.lisp (file)

Function: munsell-value-to-achromatic-xyy-from-mrd V

For devel. Another version of munsell-value-to-achromatic-xyy based on the Munsell renotation data. V must be integer. It is nearly equal to munsell-value-to-achromatic-xyy

Package

dufy

Source

munsell.lisp (file)

Function: munsell-value-to-lstar V

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

Package

dufy

Source

munsell.lisp (file)

Function: normalize-xyz X Y Z

Normalizes Y to 1.

Package

dufy

Source

xyz.lisp (file)

Function: observer-p OBJECT
Package

dufy

Source

xyz.lisp (file)

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

dufy

Source

munsell.lisp (file)

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

dufy

Source

dufy.lisp (file)

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

dufy

Source

dufy.lisp (file)

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

dufy

Source

dufy.lisp (file)

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

dufy

Source

dufy.lisp (file)

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

dufy

Source

dufy.lisp (file)

Function: rgbspace-p OBJECT
Package

dufy

Source

dufy.lisp (file)

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

dufy

Source

dufy.lisp (file)

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

dufy

Source

dufy.lisp (file)

Function: rough-lchab-to-mhvc LSTAR CSTARAB HAB
Package

dufy

Source

munsell.lisp (file)

Function: scale-xyz X Y Z &optional SCALE-TO

X, Y, Z are scaled so as to satisfy X+Y+Z = SCALE-TO.

Package

dufy

Source

xyz.lisp (file)

Function: spectrum-to-xyz-raw SPECTRUM ILLUM-SPECTRUM OBSERVER

Another version of spectrum-to-xyz: only the return value of (illuminant-spectrum illuminant) and observer are used in spectrum-to-xyz.

Package

dufy

Source

xyz.lisp (file)

Function: test-inverter ()

For devel.

Package

dufy

Source

munsell.lisp (file)

Function: test-inverter2 &optional NUM-LOOP PROFILE RGBSPACE

For devel.

Package

dufy

Source

munsell.lisp (file)

Function: test-inverter3 &optional RGBSPACE
Package

dufy

Source

munsell.lisp (file)

Function: test-value-to-y &optional NUM

Checks error of y-to-munsell-value

Package

dufy

Source

munsell.lisp (file)

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

dufy

Source

dufy.lisp (file)

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

dufy

Source

dufy.lisp (file)

Function: y-to-lstar Y
Package

dufy

Source

dufy.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

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

munsell.lisp (file)

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

dufy

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

xyz.lisp (file)

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

dufy

Methods
Method: cond-spec (CONDITION invalid-munsell-spec-error)
Method: (setf cond-spec) NEW-VALUE (CONDITION invalid-munsell-spec-error)
Source

munsell.lisp (file)

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

dufy

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

munsell.lisp (file)


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

6.2.6 Conditions

Condition: invalid-mhvc-error ()
Package

dufy

Source

munsell.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: invalid-munsell-spec-error ()
Package

dufy

Source

munsell.lisp (file)

Direct superclasses

simple-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

Source

xyz.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)


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

6.2.7 Types

Type: matrix33 ()
Package

dufy

Source

general.lisp (file)

Type: single-valued-function ()
Package

dufy

Source

general.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  
Index Entry  Section

D
dufy.asd: The dufy<dot>asd file
dufy/dat: The dufy/dat module
dufy/src: The dufy/src module
dufy/src/deltae.lisp: The dufy/src/deltae<dot>lisp file
dufy/src/dufy.lisp: The dufy/src/dufy<dot>lisp file
dufy/src/fundamental-data.lisp: The dufy/src/fundamental-data<dot>lisp file
dufy/src/general.lisp: The dufy/src/general<dot>lisp file
dufy/src/munsell-renotation-data.lisp: The dufy/src/munsell-renotation-data<dot>lisp file
dufy/src/munsell.lisp: The dufy/src/munsell<dot>lisp file
dufy/src/package.lisp: The dufy/src/package<dot>lisp file
dufy/src/xyz.lisp: The dufy/src/xyz<dot>lisp file

F
File, Lisp, dufy.asd: The dufy<dot>asd file
File, Lisp, dufy/src/deltae.lisp: The dufy/src/deltae<dot>lisp file
File, Lisp, dufy/src/dufy.lisp: The dufy/src/dufy<dot>lisp file
File, Lisp, dufy/src/fundamental-data.lisp: The dufy/src/fundamental-data<dot>lisp file
File, Lisp, dufy/src/general.lisp: The dufy/src/general<dot>lisp file
File, Lisp, dufy/src/munsell-renotation-data.lisp: The dufy/src/munsell-renotation-data<dot>lisp file
File, Lisp, dufy/src/munsell.lisp: The dufy/src/munsell<dot>lisp file
File, Lisp, dufy/src/package.lisp: The dufy/src/package<dot>lisp file
File, Lisp, dufy/src/xyz.lisp: The dufy/src/xyz<dot>lisp file

L
Lisp File, dufy.asd: The dufy<dot>asd file
Lisp File, dufy/src/deltae.lisp: The dufy/src/deltae<dot>lisp file
Lisp File, dufy/src/dufy.lisp: The dufy/src/dufy<dot>lisp file
Lisp File, dufy/src/fundamental-data.lisp: The dufy/src/fundamental-data<dot>lisp file
Lisp File, dufy/src/general.lisp: The dufy/src/general<dot>lisp file
Lisp File, dufy/src/munsell-renotation-data.lisp: The dufy/src/munsell-renotation-data<dot>lisp file
Lisp File, dufy/src/munsell.lisp: The dufy/src/munsell<dot>lisp file
Lisp File, dufy/src/package.lisp: The dufy/src/package<dot>lisp file
Lisp File, dufy/src/xyz.lisp: The dufy/src/xyz<dot>lisp file

M
Module, dufy/dat: The dufy/dat module
Module, dufy/src: The dufy/src module

Jump to:   D   F   L   M  

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

A.2 Functions

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

$
$make-cat: Internal functions
$make-illuminant: Internal functions
$make-observer: Internal functions
$make-rgbspace: Internal functions

(
(setf cat-inv-matrix): Exported functions
(setf cat-matrix): Exported 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-spec): Internal generic functions
(setf cond-spec): Internal generic functions
(setf cond-value): Internal generic functions
(setf cond-value): Internal generic functions
(setf illuminant-observer): Exported functions
(setf illuminant-small-x): Exported functions
(setf illuminant-small-y): Exported functions
(setf illuminant-spectrum): Exported functions
(setf illuminant-to-spectrum-matrix): Internal functions
(setf illuminant-x): Exported functions
(setf illuminant-y): Exported functions
(setf illuminant-z): Exported functions
(setf observer-begin-wl): Exported functions
(setf observer-cmf): Exported functions
(setf observer-cmf-arr): Exported 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 rgbspace-bit-per-channel): Exported functions
(setf rgbspace-delinearizer): Internal functions
(setf rgbspace-from-xyz-matrix): Exported functions
(setf rgbspace-illuminant): Exported functions
(setf rgbspace-len): Internal functions
(setf rgbspace-len/qmax-float): Internal functions
(setf rgbspace-linearizer): Internal functions
(setf rgbspace-llen): Internal 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-float): Internal functions
(setf rgbspace-qmax-float/len): 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

B
bb-spectrum: Exported functions
bench-deltae00: Internal functions
bench-hex-to-lchuv: Internal functions
bench-lchuv-to-hex: Internal functions
bench-mhvc-to-qrgb: Internal functions

C
c-to-d65: Internal functions
calc-cat-matrix: Internal functions
calc-to-spectrum-matrix: Internal functions
calc-uvprime: Internal functions
calc-uvprime-from-xyz: 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: Internal functions
circular-member: Exported functions
circular-nearer: Exported functions
cond-chroma: Internal generic functions
cond-chroma: Internal generic functions
cond-illuminant: Internal generic functions
cond-illuminant: Internal generic functions
cond-spec: Internal generic functions
cond-spec: Internal generic functions
cond-value: Internal generic functions
cond-value: Internal generic functions
copy-cat: Internal functions
copy-observer: Internal functions
copy-rgbspace: Exported functions

D
d65-to-c: Internal functions
def-cat-function: Exported macros
defdeltae: Internal macros
delinearize: Exported functions
delinearize-prophoto: Internal functions
delinearize-scrgb-nl: Internal functions
delinearize-srgb: Internal functions
deltae: Exported functions
deltae00: Exported functions
deltae94: Exported functions

E
empty-function: Internal functions

F
flat-spectrum: Exported functions
Function, $make-cat: Internal functions
Function, $make-illuminant: Internal functions
Function, $make-observer: Internal functions
Function, $make-rgbspace: Internal functions
Function, (setf cat-inv-matrix): Exported functions
Function, (setf cat-matrix): Exported functions
Function, (setf illuminant-observer): Exported functions
Function, (setf illuminant-small-x): Exported functions
Function, (setf illuminant-small-y): 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-y): Exported functions
Function, (setf illuminant-z): Exported functions
Function, (setf observer-begin-wl): Exported functions
Function, (setf observer-cmf): Exported functions
Function, (setf observer-cmf-arr): Exported 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 rgbspace-bit-per-channel): Exported functions
Function, (setf rgbspace-delinearizer): Internal functions
Function, (setf rgbspace-from-xyz-matrix): Exported functions
Function, (setf rgbspace-illuminant): Exported functions
Function, (setf rgbspace-len): Internal functions
Function, (setf rgbspace-len/qmax-float): Internal functions
Function, (setf rgbspace-linearizer): Internal functions
Function, (setf rgbspace-llen): Internal 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-float): Internal functions
Function, (setf rgbspace-qmax-float/len): 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, bb-spectrum: Exported functions
Function, bench-deltae00: Internal functions
Function, bench-hex-to-lchuv: Internal functions
Function, bench-lchuv-to-hex: Internal functions
Function, bench-mhvc-to-qrgb: Internal functions
Function, c-to-d65: Internal functions
Function, calc-cat-matrix: Internal functions
Function, calc-to-spectrum-matrix: Internal functions
Function, calc-uvprime: Internal functions
Function, calc-uvprime-from-xyz: 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: Internal functions
Function, circular-member: Exported functions
Function, circular-nearer: Exported functions
Function, copy-cat: Internal functions
Function, copy-observer: Internal functions
Function, copy-rgbspace: Exported functions
Function, d65-to-c: Internal functions
Function, delinearize: Exported functions
Function, delinearize-prophoto: Internal functions
Function, delinearize-scrgb-nl: Internal functions
Function, delinearize-srgb: Internal functions
Function, deltae: Exported functions
Function, deltae00: Exported functions
Function, deltae94: Exported functions
Function, empty-function: Internal functions
Function, flat-spectrum: Exported functions
Function, function-f: Internal functions
Function, gen-cat-function: Exported functions
Function, gen-delinearizer: Exported functions
Function, gen-illum-d-spectrum: Exported functions
Function, gen-illum-d-spectrum-array: Internal functions
Function, gen-linearizer: Exported functions
Function, gen-spectrum: Exported functions
Function, hex-to-qrgb: Exported functions
Function, hex-to-rgb: Exported functions
Function, hex-to-xyz: Exported functions
Function, hsl-to-qrgb: Exported functions
Function, hsl-to-rgb: Exported functions
Function, hsl-to-xyz: Exported functions
Function, hsv-to-qrgb: Exported functions
Function, hsv-to-rgb: Exported functions
Function, hsv-to-xyz: Exported functions
Function, illuminant-no-spd-p: Internal functions
Function, illuminant-observer: Exported functions
Function, illuminant-p: Internal functions
Function, illuminant-small-x: Exported functions
Function, illuminant-small-y: Exported functions
Function, illuminant-spectrum: Exported functions
Function, illuminant-to-spectrum-matrix: Internal functions
Function, illuminant-x: Exported functions
Function, illuminant-y: Exported functions
Function, illuminant-z: Exported functions
Function, invert-matrix33: Internal functions
Function, invert-mhvc-to-lchab-with-init: Internal functions
Function, lab-to-lchab: Exported functions
Function, lab-to-xyy: Internal functions
Function, lab-to-xyz: Exported functions
Function, lchab-to-lab: Exported functions
Function, lchab-to-mhvc: Exported functions
Function, lchab-to-munsell: Exported functions
Function, lchab-to-xyy: Internal functions
Function, lchab-to-xyz: 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-rgb: Exported functions
Function, lrgb-to-xyz: Exported functions
Function, lstar-to-munsell-value: Internal 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-illuminant: Exported functions
Function, make-illuminant-by-spd: Exported functions
Function, make-observer: Exported functions
Function, make-rgbspace: Exported functions
Function, max-chroma: Exported functions
Function, max-chroma-lchab: Internal functions
Function, mhvc-invalid-p: Internal functions
Function, mhvc-out-of-mrd-p: Exported functions
Function, mhvc-to-lchab: Exported functions
Function, mhvc-to-lchab-general-case: Internal functions
Function, mhvc-to-lchab-simplest-case: Internal functions
Function, mhvc-to-lchab-value-chroma-integer-case: Internal functions
Function, mhvc-to-lchab-value-integer-case: Internal functions
Function, mhvc-to-lrgb: Exported functions
Function, mhvc-to-munsell: Exported functions
Function, mhvc-to-qrgb: Exported functions
Function, mhvc-to-xyy: Exported functions
Function, mhvc-to-xyz: Exported functions
Function, mhvc-to-xyz-illum-c: Exported functions
Function, modify-float-error: Internal functions
Function, multiply-mat-vec: Internal functions
Function, munsell-out-of-mrd-p: Exported functions
Function, munsell-to-lchab: Exported functions
Function, munsell-to-mhvc: Exported functions
Function, munsell-to-qrgb: Exported functions
Function, munsell-to-xyy: Exported functions
Function, munsell-to-xyz: Exported functions
Function, munsell-value-to-achromatic-xyy: Internal functions
Function, munsell-value-to-achromatic-xyy-from-mrd: Internal functions
Function, munsell-value-to-lstar: Internal functions
Function, munsell-value-to-y: Exported functions
Function, nearly-equal: Exported functions
Function, nearly<=: Exported functions
Function, nearly=: Exported functions
Function, normalize-xyz: Internal functions
Function, observer-begin-wl: Exported functions
Function, observer-cmf: Exported functions
Function, observer-cmf-arr: Exported 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: Exported functions
Function, qrgb-deltae: Exported functions
Function, qrgb-deltae00: Exported functions
Function, qrgb-deltae94: Exported functions
Function, qrgb-out-of-gamut-p: Exported functions
Function, qrgb-to-hex: Exported functions
Function, qrgb-to-hsl: Exported functions
Function, qrgb-to-hsv: Exported functions
Function, qrgb-to-munsell-value: Internal functions
Function, qrgb-to-rgb: Exported functions
Function, qrgb-to-xyz: Exported functions
Function, rgb-out-of-gamut-p: Exported functions
Function, rgb-to-hex: Exported functions
Function, rgb-to-hsl: Exported functions
Function, rgb-to-hsv: Exported functions
Function, rgb-to-lrgb: Exported functions
Function, rgb-to-qrgb: Exported functions
Function, rgb-to-xyz: Exported functions
Function, rgbspace-bit-per-channel: Exported functions
Function, rgbspace-delinearizer: Internal functions
Function, rgbspace-from-xyz-matrix: Exported functions
Function, rgbspace-illuminant: Exported functions
Function, rgbspace-len: Internal functions
Function, rgbspace-len/qmax-float: Internal functions
Function, rgbspace-linearizer: Internal functions
Function, rgbspace-llen: Internal 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/len: 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, rough-lchab-to-mhvc: Internal functions
Function, scale-xyz: Internal functions
Function, spectrum-sum: Exported functions
Function, spectrum-to-xyz: Exported functions
Function, spectrum-to-xyz-raw: Internal functions
Function, subtract-with-mod: Exported functions
Function, test-inverter: Internal functions
Function, test-inverter2: Internal functions
Function, test-inverter3: Internal functions
Function, test-value-to-y: Internal functions
Function, xyy-to-lab: Internal functions
Function, xyy-to-lchab: Internal functions
Function, xyy-to-xyz: Exported functions
Function, xyz-deltae: Exported functions
Function, xyz-deltae00: Exported functions
Function, xyz-deltae94: Exported functions
Function, xyz-to-hex: Exported functions
Function, xyz-to-hsl: 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-munsell: Exported functions
Function, xyz-to-qrgb: Exported functions
Function, xyz-to-rgb: 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

G
gen-cat-function: Exported functions
gen-delinearizer: Exported functions
gen-illum-d-spectrum: Exported functions
gen-illum-d-spectrum-array: Internal functions
gen-linearizer: 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-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-spec: Internal generic functions
Generic Function, cond-value: Internal generic functions

H
hex-to-qrgb: Exported functions
hex-to-rgb: Exported functions
hex-to-xyz: Exported functions
hsl-to-qrgb: Exported functions
hsl-to-rgb: Exported functions
hsl-to-xyz: Exported functions
hsv-to-qrgb: Exported functions
hsv-to-rgb: Exported functions
hsv-to-xyz: Exported functions

I
illuminant-no-spd-p: Internal functions
illuminant-observer: Exported functions
illuminant-p: Internal functions
illuminant-small-x: Exported functions
illuminant-small-y: Exported functions
illuminant-spectrum: Exported functions
illuminant-to-spectrum-matrix: Internal functions
illuminant-x: Exported functions
illuminant-y: Exported functions
illuminant-z: Exported functions
invert-matrix33: Internal functions
invert-mhvc-to-lchab-with-init: Internal functions

L
lab-to-lchab: Exported functions
lab-to-xyy: Internal functions
lab-to-xyz: Exported functions
lchab-to-lab: Exported functions
lchab-to-mhvc: Exported functions
lchab-to-munsell: Exported functions
lchab-to-xyy: Internal functions
lchab-to-xyz: Exported functions
lchuv-to-luv: Exported functions
lchuv-to-xyz: Exported functions
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-rgb: Exported functions
lrgb-to-xyz: Exported functions
lstar-to-munsell-value: Internal functions
lstar-to-y: Exported functions
luv-to-lchuv: Exported functions
luv-to-xyz: Exported functions

M
Macro, def-cat-function: Exported macros
Macro, defdeltae: Internal macros
Macro, simple-time: Internal macros
make-cat: Exported functions
make-illuminant: Exported functions
make-illuminant-by-spd: Exported functions
make-observer: Exported functions
make-rgbspace: Exported functions
max-chroma: Exported functions
max-chroma-lchab: Internal functions
Method, (setf cond-chroma): Internal generic functions
Method, (setf cond-illuminant): 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-spec: Internal generic functions
Method, cond-value: Internal generic functions
mhvc-invalid-p: Internal functions
mhvc-out-of-mrd-p: Exported functions
mhvc-to-lchab: Exported functions
mhvc-to-lchab-general-case: Internal functions
mhvc-to-lchab-simplest-case: Internal functions
mhvc-to-lchab-value-chroma-integer-case: Internal functions
mhvc-to-lchab-value-integer-case: Internal functions
mhvc-to-lrgb: Exported functions
mhvc-to-munsell: Exported functions
mhvc-to-qrgb: Exported functions
mhvc-to-xyy: Exported functions
mhvc-to-xyz: Exported functions
mhvc-to-xyz-illum-c: Exported functions
modify-float-error: Internal functions
multiply-mat-vec: Internal functions
munsell-out-of-mrd-p: Exported functions
munsell-to-lchab: Exported functions
munsell-to-mhvc: Exported functions
munsell-to-qrgb: Exported functions
munsell-to-xyy: Exported functions
munsell-to-xyz: Exported functions
munsell-value-to-achromatic-xyy: Internal functions
munsell-value-to-achromatic-xyy-from-mrd: Internal functions
munsell-value-to-lstar: Internal functions
munsell-value-to-y: Exported functions

N
nearly-equal: Exported functions
nearly<=: Exported functions
nearly=: Exported functions
normalize-xyz: Internal functions

O
observer-begin-wl: Exported functions
observer-cmf: Exported functions
observer-cmf-arr: Exported 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: Exported functions

Q
qrgb-deltae: Exported functions
qrgb-deltae00: Exported functions
qrgb-deltae94: Exported functions
qrgb-out-of-gamut-p: Exported functions
qrgb-to-hex: Exported functions
qrgb-to-hsl: Exported functions
qrgb-to-hsv: Exported functions
qrgb-to-munsell-value: Internal functions
qrgb-to-rgb: Exported functions
qrgb-to-xyz: Exported functions

R
rgb-out-of-gamut-p: Exported functions
rgb-to-hex: Exported functions
rgb-to-hsl: Exported functions
rgb-to-hsv: Exported functions
rgb-to-lrgb: Exported functions
rgb-to-qrgb: Exported functions
rgb-to-xyz: Exported functions
rgbspace-bit-per-channel: Exported functions
rgbspace-delinearizer: Internal functions
rgbspace-from-xyz-matrix: Exported functions
rgbspace-illuminant: Exported functions
rgbspace-len: Internal functions
rgbspace-len/qmax-float: Internal functions
rgbspace-linearizer: Internal functions
rgbspace-llen: Internal 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/len: 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
rough-lchab-to-mhvc: Internal functions

S
scale-xyz: Internal functions
simple-time: Internal macros
spectrum-sum: Exported functions
spectrum-to-xyz: Exported functions
spectrum-to-xyz-raw: Internal functions
subtract-with-mod: Exported functions

T
test-inverter: Internal functions
test-inverter2: Internal functions
test-inverter3: Internal functions
test-value-to-y: Internal functions

X
xyy-to-lab: Internal functions
xyy-to-lchab: Internal functions
xyy-to-xyz: Exported functions
xyz-deltae: Exported functions
xyz-deltae00: Exported functions
xyz-deltae94: Exported functions
xyz-to-hex: Exported functions
xyz-to-hsl: 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-munsell: Exported functions
xyz-to-qrgb: Exported functions
xyz-to-rgb: 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:   $   (  
B   C   D   E   F   G   H   I   L   M   N   O   Q   R   S   T   X   Y  

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

A.3 Variables

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

*
*bit-most-positive-fixnum*: Internal special variables
*maximum-chroma*: Exported special variables

+
+360/two-pi+: Internal 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
+c-to-d65-mat+: Internal special variables
+cat02+: Exported special variables
+cat97s-revised+: Exported special variables
+cmccat2000+: Exported special variables
+cmccat97+: Exported special variables
+d65-to-c-mat+: Internal special variables
+empty-matrix+: Internal special variables
+identity-matrix+: Internal special variables
+illum-a+: Exported special variables
+illum-b+: Internal special variables
+illum-c+: Exported special variables
+illum-c-arr+: Internal special variables
+illum-d50+: Exported special variables
+illum-d65+: Exported special variables
+illum-e+: Exported 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-arr+: Internal special variables
+s0-func+: Internal special variables
+s1-arr+: Internal special variables
+s1-func+: Internal special variables
+s2-arr+: Internal special variables
+s2-func+: Internal special variables
+scrgb-16+: Exported special variables
+scrgb-nl+: Exported special variables
+srgb+: Exported special variables
+two-pi/360+: Internal constants
+von-kries+: Exported special variables
+wide-gamut+: Exported special variables
+xyz-scaling+: Exported special variables

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

C
chroma: Internal conditions
cmf: Exported structures
cmf-arr: Exported structures
cmf-arr-cie1931: Internal special variables
cmf-arr-cie1964: Internal special variables
cmf-x: Exported structures
cmf-y: Exported structures
cmf-z: Exported structures
Constant, +360/two-pi+: Internal constants
Constant, +two-pi/360+: Internal constants
Constant, two-pi: Exported constants

D
delinearizer: Exported structures

E
end-wl: Exported structures

F
from-xyz-matrix: Exported structures

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

L
len: Exported structures
len/qmax-float: Exported structures
linearizer: Exported structures
llen: Exported structures
lmax: Exported structures
lmin: Exported structures

M
matrix: Exported structures
max: Exported structures
max-chroma-arr: Internal special variables
max-chroma-arr-dark: Internal special variables
min: Exported structures
mrd-array-lchab: Internal special variables
mrd-array-lchab-dark: Internal special variables

N
normal: Exported structures

O
observer: Exported structures

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

S
Slot, begin-wl: Exported structures
Slot, bit-per-channel: Exported structures
Slot, chroma: Internal conditions
Slot, cmf: Exported structures
Slot, cmf-arr: Exported structures
Slot, cmf-x: Exported structures
Slot, cmf-y: Exported structures
Slot, cmf-z: Exported structures
Slot, delinearizer: Exported structures
Slot, end-wl: Exported structures
Slot, from-xyz-matrix: Exported structures
Slot, illuminant: Exported structures
Slot, illuminant: Internal conditions
Slot, inv-matrix: Exported structures
Slot, len: Exported structures
Slot, len/qmax-float: Exported structures
Slot, linearizer: Exported structures
Slot, llen: Exported structures
Slot, lmax: Exported structures
Slot, lmin: Exported structures
Slot, matrix: Exported structures
Slot, max: Exported structures
Slot, min: Exported structures
Slot, normal: Exported structures
Slot, observer: Exported structures
Slot, qmax: Exported structures
Slot, qmax-float: Exported structures
Slot, qmax-float/len: Exported structures
Slot, small-x: Exported structures
Slot, small-y: Exported structures
Slot, spec: Internal conditions
Slot, spectrum: Exported structures
Slot, to-spectrum-matrix: Exported structures
Slot, to-xyz-matrix: Exported structures
Slot, value: Internal conditions
Slot, x: Exported structures
Slot, xb: Exported structures
Slot, xg: Exported structures
Slot, xr: Exported structures
Slot, y: Exported structures
Slot, yb: Exported structures
Slot, yg: Exported structures
Slot, yr: Exported structures
Slot, z: Exported structures
small-x: Exported structures
small-y: Exported structures
spec: Internal conditions
Special Variable, *bit-most-positive-fixnum*: Internal special variables
Special Variable, *maximum-chroma*: Exported 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, +c-to-d65-mat+: Internal special variables
Special Variable, +cat02+: Exported special variables
Special Variable, +cat97s-revised+: Exported special variables
Special Variable, +cmccat2000+: Exported special variables
Special Variable, +cmccat97+: Exported special variables
Special Variable, +d65-to-c-mat+: Internal special variables
Special Variable, +empty-matrix+: Internal special variables
Special Variable, +identity-matrix+: Internal special variables
Special Variable, +illum-a+: Exported special variables
Special Variable, +illum-b+: Internal special variables
Special Variable, +illum-c+: Exported special variables
Special Variable, +illum-c-arr+: 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, +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-arr+: Internal special variables
Special Variable, +s0-func+: Internal special variables
Special Variable, +s1-arr+: Internal special variables
Special Variable, +s1-func+: Internal special variables
Special Variable, +s2-arr+: Internal special variables
Special Variable, +s2-func+: 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, cmf-arr-cie1931: Internal special variables
Special Variable, cmf-arr-cie1964: Internal special variables
Special Variable, max-chroma-arr: Internal special variables
Special Variable, max-chroma-arr-dark: Internal special variables
Special Variable, mrd-array-lchab: Internal special variables
Special Variable, mrd-array-lchab-dark: Internal special variables
Special Variable, y-to-munsell-value-arr: Internal special variables
spectrum: Exported structures

T
to-spectrum-matrix: Exported structures
to-xyz-matrix: Exported structures
two-pi: Exported constants

V
value: Internal conditions

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

Y
y: Exported structures
y-to-munsell-value-arr: Internal special variables
yb: Exported structures
yg: Exported structures
yr: Exported structures

Z
z: Exported structures

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

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

A.4 Data types

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

C
cat: Exported structures
Condition, invalid-mhvc-error: Internal conditions
Condition, invalid-munsell-spec-error: Internal conditions
Condition, no-spd-error: Internal conditions

D
dufy: The dufy system
dufy: The dufy package

I
illuminant: Exported structures
invalid-mhvc-error: Internal conditions
invalid-munsell-spec-error: Internal conditions

M
matrix33: Internal types

N
no-spd-error: Internal conditions

O
observer: Exported structures

P
Package, dufy: The dufy package

R
rgbspace: Exported structures

S
single-valued-function: Internal types
Structure, cat: Exported structures
Structure, illuminant: Exported structures
Structure, observer: Exported structures
Structure, rgbspace: Exported structures
System, dufy: The dufy system

T
Type, matrix33: Internal types
Type, single-valued-function: Internal types

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