This is the legacy 4D documentation web site. Documentations are progressively being moved to developer.4d.com |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
4D v19
SVG_Color_RGB_from_HLS
|
SVG_Color_RGB_from_HLS ( hue ; luminosity ; saturation {; format} ) -> Function result | ||||||||
Parameter | Type | Description | ||||||
hue | Longint |
![]() |
Hue value | |||||
luminosity | Longint |
![]() |
Luminosity value | |||||
saturation | Longint |
![]() |
Saturation value | |||||
format | Longint |
![]() |
Color format | |||||
Function result | Text |
![]() |
Color string | |||||
The SVG_Color_RGB_from_HLS command returns a string expressing the color corresponding to the hue, luminosity and saturation parameters passed as arguments. The string returned is in the form "RGB(red,green,blue)" by default, the syntax recognized by SVG rendering engines.
hue is a longint included between 0 and 360°.
luminosity and saturation are longints included between 0 and 100%.
The optional format parameter is used to specify the desired format for the color string returned. The values are:
Value | Format |
1 (default) | rgb(r,g,b) |
2 | #rgb |
3 | #rrggbb |
4 | rgb(r%, g%, b%) |
Product: 4D
Theme: Colors and Gradients
Number:
65894
Created: 4D v12
4D SVG Component ( 4D v19)