Generated: September 11, 2001, 10:23:56Copyright © 2000, Kurt NørmarkThe local LAML software home page

Reference Manual of the Color Library

Kurt Nørmark ©    normark@cs.auc.dk    Department of Computer Science    Aalborg University    Denmark    

Master index               Source file: lib4/color.scm

A library which contains the basis of handling colors in HTML. In particular it can convert decimal color numbers to a hexidecial representation. The library is used to convert rgb color lists, such as (list 255 255 255) to a string, such as "#ffffff".

The library also contains a set of ad hoc color constants.

Table of Contents:
1. Number converting.3. Color construction and constants.
2. Rgb color functions.4. Color constants.

Alphabetic index:
aquaaquaA color constant.
blackblackA color constant.
blueblueA color constant.
blue1blue1A color constant.
blue2blue2A color constant.
blue3blue3A color constant.
brownbrownA color constant.
dark-reddark-redA color constant.
dark-yellowdark-yellowA color constant.
fuchsiafuchsiaA color constant.
greengreenA color constant.
green1green1A color constant.
green2green2A color constant.
greygreyA color constant.
grey1grey1A color constant.
grey2grey2A color constant.
light-bluelight-blueA color constant.
limelimeA color constant.
make-color(make-color r g b)Make and return the rgb-list representation of the color with r red, g green, and b blue.
maroonmaroonA color constant.
navynavyA color constant.
number-in-base(number-in-base n base)Return the decimal number n in base.
oliveoliveA color constant.
orangeorangeA color constant.
purplepurpleA color constant.
redredA color constant.
rgb(rgb r g b)Return an 'Internet list' encoding the color (list r g b).
rgb-color(rgb-color r g b)Returns the color encoding of (list r g b) given three numbers a parameters.
rgb-color-list(rgb-color-list color-triple-list)Returns the color encoding of (list r g b) given a list of three color numbers as parameter.
rgb-string(rgb-string r g b)Return an 'Internet' string encoding the color (list r g b).
rgb-string-list(rgb-string-list color-list)A variant of rgb-string, in which the colors are passed in one list.
silversilverA color constant.
tetaltetalA color constant.
whitewhiteA color constant.
yellowyellowA color constant.

 

1.   NUMBER CONVERTING.



number-in-base



Form
(number-in-base n base)

Description
Return the decimal number n in base. n should be positive. Returns a string.


 

2.   RGB COLOR FUNCTIONS.



rgb



Form
(rgb r g b)

Description
Return an 'Internet list' encoding the color (list r g b).


rgb-string



Form
(rgb-string r g b)

Description
Return an 'Internet' string encoding the color (list r g b).


rgb-color



Form
(rgb-color r g b)

Description
Returns the color encoding of (list r g b) given three numbers a parameters. The function rgb-color is an alias for rgb-string.

Parameters
rThe red color (a number between 0 and 255)
gThe green color (a number between 0 and 255)
bThe blue color (a number between 0 and 255)


rgb-string-list



Form
(rgb-string-list color-list)

Description
A variant of rgb-string, in which the colors are passed in one list.


rgb-color-list



Form
(rgb-color-list color-triple-list)

Description
Returns the color encoding of (list r g b) given a list of three color numbers as parameter. The function rgb-color-list is an alias for rgb-string-list.

Parameters
color-triple-listA list of three numbers - red, green, and blue.


 

3.   COLOR CONSTRUCTION AND CONSTANTS.



make-color



Form
(make-color r g b)

Description
Make and return the rgb-list representation of the color with r red, g green, and b blue.


 

4.   COLOR CONSTANTS.



red



Form
red

Description
A color constant. A color is represented as a list of integers of length three (rgb).


dark-red



Form
dark-red

Description
A color constant. A color is represented as a list of integers of length three (rgb).


green



Form
green

Description
A color constant. A color is represented as a list of integers of length three (rgb).


green1



Form
green1

Description
A color constant. A color is represented as a list of integers of length three (rgb).


green2



Form
green2

Description
A color constant. A color is represented as a list of integers of length three (rgb).


blue



Form
blue

Description
A color constant. A color is represented as a list of integers of length three (rgb).


white



Form
white

Description
A color constant. A color is represented as a list of integers of length three (rgb).


black



Form
black

Description
A color constant. A color is represented as a list of integers of length three (rgb).


yellow



Form
yellow

Description
A color constant. A color is represented as a list of integers of length three (rgb).


purple



Form
purple

Description
A color constant. A color is represented as a list of integers of length three (rgb).


light-blue



Form
light-blue

Description
A color constant. A color is represented as a list of integers of length three (rgb).


blue1



Form
blue1

Description
A color constant. A color is represented as a list of integers of length three (rgb).


blue2



Form
blue2

Description
A color constant. A color is represented as a list of integers of length three (rgb).


blue3



Form
blue3

Description
A color constant. A color is represented as a list of integers of length three (rgb).


orange



Form
orange

Description
A color constant. A color is represented as a list of integers of length three (rgb).


dark-yellow



Form
dark-yellow

Description
A color constant. A color is represented as a list of integers of length three (rgb).


grey1



Form
grey1

Description
A color constant. A color is represented as a list of integers of length three (rgb).


grey2



Form
grey2

Description
A color constant. A color is represented as a list of integers of length three (rgb).


brown



Form
brown

Description
A color constant. A color is represented as a list of integers of length three (rgb).


maroon



Form
maroon

Description
A color constant. A color is represented as a list of integers of length three (rgb).


grey



Form
grey

Description
A color constant. A color is represented as a list of integers of length three (rgb).


silver



Form
silver

Description
A color constant. A color is represented as a list of integers of length three (rgb).


tetal



Form
tetal

Description
A color constant. A color is represented as a list of integers of length three (rgb).


aqua



Form
aqua

Description
A color constant. A color is represented as a list of integers of length three (rgb). A color constant. A color is represented as a list of integers of length three (rgb).


lime



Form
lime

Description
A color constant. A color is represented as a list of integers of length three (rgb). A color constant. A color is represented as a list of integers of length three (rgb).


olive



Form
olive

Description
A color constant. A color is represented as a list of integers of length three (rgb).


navy



Form
navy

Description
A color constant. A color is represented as a list of integers of length three (rgb).


fuchsia



Form
fuchsia

Description
A color constant. A color is represented as a list of integers of length three (rgb).


Generated: September 11, 2001, 10:23:57
This documentation has been extracted automatically from the Scheme source file by means of the Schemedoc tool