SilverScreen Solid Modeler

pm_color

pm_color

Previous topic Next topic  

pm_color

Previous topic Next topic JavaScript is required for the print function  

SilverScreenAPI

 

void pm_color ( char *message, RGB *color )

 

char *message;    // prompt string

RGB  *color;      // address of RGB value to receive result

 

 




Synopsis

#include "silver.h"

 

The pm_color function adds a color prompt to the current panel, with prompt specified by message . The color prompt is initialized with the RGB pointed to by color . After pm_execute , the resulting color value is returned in color .

 

 

Parameters

message is a null-terminated string containing the prompt message. color is the address of an RGB structure.

 

 

Return Value

none.

 

 

Comments

The initial value for the field is the inial value of the RGB pointed to by color .

 

 

See Also

pm_execute

 

 

Example

C / C++ Code

 

 c = color_white;

 pm_color ( "Edge color", &c );