SilverScreen Solid Modeler

prompt_rgb

prompt_rgb

Previous topic Next topic  

prompt_rgb

Previous topic Next topic JavaScript is required for the print function  

SilverScreenAPI

 

int prompt_rgb ( char *message, char *result  )

 

char *message;      // prompt message string

char *result;       // address of buffer to receive color string

 

 




Synopsis

#include "silver.h"

 

The prompt_rgb function allows the user to select a color, via use of one of the color selection panels. The message parameter is used in prompting.

 

 

Parameters

message is a null-terminated string containing a prompt message. result is the address of an integer which is to receive the color string, which will be of the form

"<red value>,<green value>,<blue value>"

 

 

Return Value

prompt_rgb stores the color number into result and returns 1 if a color was successfully selected; otherwise 0 is returned.