Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ Color(3I) — Lucid Energize 2.1

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

Painter(3I)

Color(3I)  —  InterViews Reference Manual

NAME

Color − colors for a painter

SYNOPSIS

#include <InterViews/color.h>

DESCRIPTION

A Color defines a mix of rgb (red, green, and blue) intensities.  The global variables “black” and “white” point to predefined colors of zero and full intensity output, respectively.  Note that the displayed intensities of a color will depend on the characteristics of the workstation. 

PUBLIC OPERATIONS

Color(const char∗ name)
Construct a color with intensities associated with name. 

Color(int red, int green, int blue)
Construct a color with the specified red, green, and blue intensities. Zero represents no intensity; 65535 represents full intensity.

Color(int entry)
Construct a color with intensities associated with a color map entry.

void Intensities(int& red, int& green, int& blue)
Get the intensities used to create the color.

void DisplayIntensities(int& red, int& green, int& blue)
Get the intensities used to display the color.

int PixelValue()
Return the color’s index in its color map.

boolean Valid()
Return whether the color is meaningful. This call can be used after Color(name) to see if the name is recognized as a color.

SEE ALSO

Painter(3I)

InterViews  —  Last change: 15 June 1987

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026