PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
  • Properties specific to the description of Color variables
  • Functions that use the Color variables
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
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 modified by several WLanguage properties.
Note: See Declaring a variable for more details.
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 blue component of color.
ColorIntegerValue of color. This value is compatible with: This property corresponds to the default property used by the Color type.
LuminanceIntegerLightness of color (between 0 and 255).
OpacityIntegerOpacity in relation with the alpha layer associated with the color.
This property must be included between 0 and 255.
RedIntegerValue of red component of color.
SaturationIntegerSaturation of color (between 0 and 255).
HueIntegerHue of color (included between 0 and 255).
GreenIntegerValue of green component of color.

Note: These properties can be used with one of the following syntaxes:
  • <Variable name>..<Property name>
  • <Variable name>.<Property name>

Functions that use the Color variables

Versions 17 and later
ColorPalette
New in version 17
ColorPalette
ColorPalette
Returns a color found in the current palette.
Versions 09 and later
dArc
New in version 09
dArc
dArc
Draws an arc of circle or an arc of ellipse:
  • in an Image control,
  • in an Image variable.
Versions 09 and later
dChord
New in version 09
dChord
dChord
Draws the chord of a circle (intersection between an ellipse and a straight line):
  • in an Image control,
  • in an Image variable].
Versions 09 and later
dCircle
New in version 09
dCircle
dCircle
Draws a circle or an ellipse:
  • in an Image control,
  • in an Image variable.
Versions 09 and later
dLine
New in version 09
dLine
dLine
Draws a line:
  • in an Image control,
  • in an Image variable].
Versions 09 and later
dPixelColor
New in version 09
dPixelColor
dPixelColor
Identifies the color of a pixel found:
  • in an Image control,
  • in an Image variable].
Versions 09 and later
dPolygon
New in version 09
dPolygon
dPolygon
Draws a polygon:
  • in an Image control,
  • in an Image variable.
Versions 09 and later
dRectangle
New in version 09
dRectangle
dRectangle
Draws a rectangle:
  • in an Image control,
  • in an Image variable].
Versions 21 and later
dRoundedRectangle
New in version 21
dRoundedRectangle
dRoundedRectangle
Draws a rounded rectangle:
  • in an Image control,
  • in an Image variable.
Versions 09 and later
dSlice
New in version 09
dSlice
dSlice
Draws a circle section or an ellipse section:
  • in an Image control,
  • in an Image variable].
Versions 10 and later
HSL
New in version 10
HSL
HSL
Creates a color from its hue, saturation and lightness.
Versions 09 and later
RGB
New in version 09
RGB
RGB
Describes a color from its Red, Green and Blue components.
Minimum required version
  • Version 17
This page is also available for…
Comments
Click [Add] to post a comment