4D v13SVG_Define_solidColor |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
4D v13
SVG_Define_solidColor
SVG_Define_solidColor
The SVG_Define_solidColor command sets a new custom color in the SVG container designated by parentSVGObject and returns its reference. If parentSVGObject is not an SVG document, an error is generated. The id parameter specifies the color name. The name will be used to associate a color with an object. If an element with the same name exists, it will be replaced. The color parameter is a color expression recognized by SVG (see Colors and Gradients). The optional opacity parameter can be used to specify an opacity (from 0 to 100) for this color. If the parameter is omitted, the opacity will be 100%. The color set in this way will be associated with the fill or stroke paint by passing the string "url(#ID)" as the value when a color expression is expected. `Set blue to 50% |
PROPERTIES
Product: 4D
INDEX HISTORY
Created: Composant 4D SVG v11.3 SEE ALSO |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||