This is the legacy 4D documentation web site. Documentations are progressively being moved to developer.4d.com |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
4D v19
SVG_Get_named_color_value
|
SVG_Get_named_color_value ( colorName {; rgbComponent} ) -> Function result | ||||||||
Parameter | Type | Description | ||||||
colorName | Text |
![]() |
SVG color name | |||||
rgbComponent | Text |
![]() |
"R", "G" or "B" to indicate color component | |||||
Function result | Longint |
![]() |
Returns color value | |||||
The SVG_Get_named_color_value command returns the value of the SVG color whose name is specified in the colorName parameter.
In the optional rgbComponent parameter, you can pass either "R" (red), "G" (green) or "B" (blue) to indicate the specific color component for which you want to get the value. If you do not pass this parameter, the command returns the (complete) long color value.
Product: 4D
Theme: Colors and Gradients
Created: 4D v14
4D SVG Component ( 4D v19)