3.7.3 colors.inc

This file is mainly a list of predefined colors, but also has a few color manipulation macros.

3.7.3.1 Predefined colors


Color Red

Color Green

Color Blue

Color Yellow

Color Cyan

Color Magenta

Color Clear

Color White

Color Black

Color Gray05

Color Gray10

Color Gray15

Color Gray20

Color Gray25

Color Gray30

Color Gray35

Color Gray40

Color Gray45

Color Gray50

Color Gray55

Color Gray60

Color Gray65

Color Gray70

Color Gray75

Color Gray80

Color Gray85

Color Gray90

Color Gray95

Color DimGray

Color Gray

Color LightGray

Color VLightGray

Color Aquamarine

Color BlueViolet

Color Brown

Color CadetBlue

Color Coral

Color CornflowerBlue

Color DarkGreen

Color DarkOliveGreen

Color DarkOrchid

Color DarkSlateBlue

Color DarkSlateGray

Color DarkTurquoise

Color Firebrick

Color ForestGreen

Color Gold

Color Goldenrod

Color GreenYellow

Color IndianRed

Color Khaki

Color LightBlue

Color LightSteelBlue

Color LimeGreen

Color Maroon

Color MediumAquamarine

Color MediumBlue

Color MediumForestGreen

Color MediumGoldenrod

Color MediumOrchid

Color MediumSeaGreen

Color MediumSlateBlue

Color MediumSpringGreen

Color MediumTurquoise

Color MediumVioletRed

Color MidnightBlue

Color Navy

Color NavyBlue

Color Orange

Color OrangeRed

Color Orchid

Color PaleGreen

Color Pink

Color Plum

Color Salmon

Color SeaGreen

Color Sienna

Color SkyBlue

Color SlateBlue

Color SpringGreen

Color SteelBlue

Color Tan

Color Thistle

Color Turquoise

Color Violet

Color VioletRed

Color Wheat

Color YellowGreen

Color SummerSky

Color RichBlue

Color Brass

Color Copper

Color Bronze

Color Bronze2

Color Silver

Color BrightGold

Color OldGold

Color Feldspar

Color Quartz

Color Mica

Color NeonPink

Color DarkPurple

Color NeonBlue

Color CoolCopper

Color MandarinOrange

Color LightWood

Color MediumWood

Color DarkWood

Color SpicyPink

Color SemiSweetChoc

Color BakersChoc

Color Flesh

Color NewTan

Color NewMidnightBlue

Color VeryDarkBrown

Color DarkBrown

Color DarkTan

Color GreenCopper

Color DkGreenCopper

Color DustyRose

Color HuntersGreen

Color Scarlet

Color Med_Purple

Color Light_Purple

Color Very_Light_Purple

3.7.3.2 Color macros

In POV-Ray all colors are handled in RGB color space with a component for the amount of red, green and blue light. However, not everybody thinks this is the most intuitive way to specify colors. For your convenience there are macros included in colors.inc that converts between a few different types of color spaces.
The three supported color spaces:

CHSL2RGB(Color). Converts a color given in HSL space to one in RGB space.
Parameters:

CRGB2HSL(Color). Converts a color given in RGB space to one in HSL space.
Parameters:

CHSV2RGB(Color). Converts a color given in HSV space to one in RGB space.
Parameters:

CRGB2HSV(Color). Converts a color given in RGB space to one in HSV space.
Parameters:

Convert_Color(SourceType, DestType, Color). Converts a color from one color space to another. Color spaces available are: RGB, HSL, and HSV.
Parameters: