PC SOFT

ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Home | Sign in | English EN
  • Properties specific to the description of Color variables
  • Functions that use Color variables
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Others
Stored procedures
Color (Type of variable)
In french: Couleur
The Color type is used to define the advanced characteristics of a WLanguage color. The characteristics of this color can be defined and changed using different WLanguage properties.
Remark: For more details on the declaration of this type of variable and the use of WLanguage properties, see Declaring a variable.
Example
MyColor is Color = LightYellow
MyColor.Luminance += 10
Remarks

Properties specific to the description of Color variables

The following properties can be used to handle a Color variable:
Property nameType usedEffect
BlueIntegerValue of the blue component of the color.
ColorIntegerValue of the color. This value is compatible with: This property corresponds to the default property used by the Color type.
LuminanceIntegerLightness of the color (between 0 and 255).
OpacityIntegerOpacity in relation with the alpha channel associated with the color.
This property must be included between 0 and 255.
RedIntegerValue of the red component of the color.
SaturationIntegerSaturation of the color (between 0 and 255).
HueIntegerHue of the color (between 0 and 255).
GreenIntegerValue of the green component of the color.

Functions that use Color variables

ColorPaletteReturns a color found in the current palette.
dArcDraws 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.
dCircleDraws 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.
dChordDraws 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.
dLineDraws a line:
  • in an Image control,
  • in an Image variable,
  • in a WDPic variable (on the background layer),
  • in a picLayer variable.
dPixelColorIdentifies the color of a pixel:
dPolygonDraws a polygon:
  • in an Image control,
  • in an Image variable,
  • in a WDPic variable (on the background layer),
  • in a picLayer variable.
dSliceDraws 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.
dRectangleDraws a rectangle:
  • in an Image control,
  • in an Image variable,
  • in a WDPic variable (on the background layer),
  • in a picLayer variable.
dRoundedRectangleDraws a rounded rectangle:
  • in an Image control,
  • in an Image variable,
  • in a WDPic variable (on the background layer),
  • in a picLayer variable.
RGBDefines a color from its Red, Green and Blue components.
HSLCreates a color from its hue, saturation and lightness.
Minimum version required
  • Version 17
This page is also available for…
Comments
Click [Add] to post a comment