home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The World of Computer Software
/
World_Of_Computer_Software-02-385-Vol-1of3.iso
/
x
/
xcolored.zip
/
xcoloredit
/
color.h
< prev
next >
Wrap
C/C++ Source or Header
|
1991-06-18
|
982b
|
52 lines
/* $Header: /usr/nfs/maple/d0/users/rlh2/toolkit/installed-src/xcoloredit/RCS/color.h,v 1.2 90/06/30 14:33:12 rlh2 Rel Locker: rlh2 $ */
/*
* color.h - color definitions
*
* Author: Christopher A. Kent
* Western Research Laboratory
* Digital Equipment Corporation
* Date: Sun Dec 13 1987
* Copyright (c) 1987 Christopher A. Kent
*/
/*
* $Log: color.h,v $
* Revision 1.2 90/06/30 14:33:12 rlh2
* patchlevel 1
*
* Revision 1.1 90/05/10 11:16:54 rlh2
* Initial revision
*
* Revision 1.2 88/06/30 09:58:56 mikey
* Handles CMY also.
*
* Revision 1.1 88/06/30 09:10:53 mikey
* Initial revision
*
*/
typedef struct _RGB {
unsigned short r, g, b;
} RGB;
typedef struct _HSV {
float h, s, v; /* [0, 1] */
} HSV;
typedef struct _CMY {
unsigned short c, m, y;
} CMY;
extern RGB RGBWhite, RGBBlack;
RGB MixRGB();
RGB MixHSV();
RGB HSVToRGB();
HSV RGBToHSV();
float RGBDist();
RGB PctToRGB();
HSV PctToHSV();
RGB CMYToRGB();
CMY RGBToCMY();