|
|
|
|
GetColor (Function) In french: DonneCouleur Allows you to get a set of harmonious colors without having to use a table of colors.
// Fill in the data of the Chart control FOR I = 1 TO 12 // Adds the turnover of month number I grAddData(CHART_MyChart, I, arrValues[I]) // Assigns a color to the series of month number I grSeriesColor(CHART_MyChart, I, GetColor()) END
Syntax
<Result> = GetColor([<Subscript> [, <Serial>]])
<Result>: Integer Color in RGB format. <Subscript>: Optional integer Number of the color to retrieve. If this parameter is not specified, the color returned in a color that was never used before. If this parameter is specified, the same color will always be returned for a given subscript.
<Serial>: Optional Integer constant Constant indicating the style of color set to retrieve: | | colSetDark | The returned color is chosen among a set of darker colors (suitable for the TreeMap control for example). | colSetDefault (Default value) | The returned color is chosen among a set of standard colors. | colSetPalette | The returned color is chosen among the set of colors defined for the current palette. | colSetPastel | The returned color is chosen among a set of lighter colors. | colSetTemplate | The returned color is chosen among the set of colors defined for the current skin template. |
Related Examples:
|
Unit examples (WINDEV): The drawing functions
[ + ] Using the main drawing functions of WINDEV to: - Initialize an Image control for drawing - Draw simple shapes - Write a text into a drawing - Change the color in a drawing
|
Business / UI classification: UI Code
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|