|
|
|
|
|
- Properties specific to Color variables
- Functions that use Color variables
Color (Variable type) In french: Couleur
The Color type is used to define the advanced characteristics of a WLanguage color. You can define and change the characteristics of this color using different WLanguage properties. Note: For more details on the declaration of this type of variable and the use of WLanguage properties, see Declaring a variable.
MaCouleur is Color = JauneClair
MaCouleur.Luminance += 10
Properties Properties specific to Color variables The following properties can be used to handle Color variables: | | | Property name | Type used | Effect |
---|
Blue | Integer | Value of the blue component of the color. | Color | Integer | Value of the color. This value is compatible with: This property corresponds to the default property used by the Color type. | Luminance | Integer | Lightness of the color (between 0 and 255). | Opacity | Integer | Opacity in relation with the alpha channel associated with the color. This property must be between 0 and 255. | Red | Integer | Value of the red component of the color. | Saturation | Integer | Saturation of the color (between 0 and 255). | Hue | Integer | Hue of the color (between 0 and 255). | Green | Integer | Value of the green component of the color. |
Remarks Functions that use Color variables | | ColorPalette | Returns a color found in the current palette. | dArc | Draws an arc of circle or an arc of ellipse: - in an Image control,
- in an Image variable,
- in a WDPic variable (on the background layer),
- in a picLayer variable.
| dChord | Draws the chord of a circle (intersection between an ellipse and a straight line): - in an Image control,
- in an Image variable,
- in a WDPic variable (on the background layer),
- in a picLayer variable.
| dCircle | Draws a circle or an ellipse: - in an Image control,
- in an Image variable,
- in a WDPic variable (on the background layer),
- in a picLayer variable.
| dLine | Draws a line: - in an Image control,
- in an Image variable,
- in a WDPic variable (on the background layer),
- in a picLayer variable.
| dPixelColor | Identifies the color of a pixel found: | dPolygon | Draws a polygon: - in an Image control,
- in an Image variable,
- in a WDPic variable (on the background layer),
- in a picLayer variable.
| dRectangle | Draws a rectangle: - in an Image control,
- in an Image variable,
- in a WDPic variable (on the background layer),
- in a picLayer variable.
| dRoundedRectangle | Draws a rounded rectangle:- in an Image control,
- in an Image variable,
- in a WDPic variable (on the background layer),
- in a picLayer variable.
| dSlice | Draws a circle section or an ellipse section: - in an Image control,
- in an Image variable,
- in a WDPic variable (on the background layer),
- in a picLayer variable.
| HSL | Creates a color from its hue, saturation and lightness. | RGB | Defines a color from its Red, Green and Blue components. |
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|