4D v13

SVG_Color_RGB_from_CMYK

Home

 
4D v13
SVG_Color_RGB_from_CMYK

SVG_Color_RGB_from_CMYK 


 

SVG_Color_RGB_from_CMYK ( cyan ; magenta ; yellow ; black {; format} ) -> Function result 
Parameter Type   Description
cyan  Longint in Cyan value
magenta  Longint in Magenta value
yellow  Longint in Yellow value
black  Longint in Black value
format  Longint in Color format
Function result  Text in Color string

The SVG_Color_RGB_from_CMYK command returns a string expressing the color corresponding to the four color parameters, cyan, magenta, yellow and black, passed as arguments. The string returned is in the form "RGB(red,greeen,blue)" by default, the syntax recognized by SVG rendering engines.

cyan, magenta, yellow and black 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:

ValueFormat
1 (default)rgb(r,g,b)
2#rgb
3#rrggbb
4rgb(r%, g%, b%)

 
PROPERTIES 

Product: 4D
Theme: Colors and Gradients
Number: 65895

 
INDEX

Alphabetical list of commands

 
HISTORY 

Created: 4D v12