SVG_SET_FILL_BRUSH

4D - Documentation   Français   English   German   4D SVG Component, Command Theme List   4D SVG Component, Index   Back   Previous   Next

version 11.3


SVG_SET_FILL_BRUSH (svgObject; color)

ParameterTypeDescription
svgObjectSVG_RefReference of SVG element
colorStringColor expression

Description

The SVG_SET_FILL_BRUSH command can be used to set the fill color for the SVG object having the svgObject reference. If this attribute already exists, its value is replaced by the value passed in the parameter.

For more information about colors, please refer to the "SVG Colors" section.

Example

   $svg:=SVG_New
   $object:=SVG_New_rect ($svg; 10; 10; 200; 200; 0; 0; "black";"white"; 2)
   SVG_SET_FILL_BRUSH ($object; "blue")

See Also

SVG Colors, SVG_SET_STROKE_BRUSH.


4D - Documentation   Français   English   German   4D SVG Component, Command Theme List   4D SVG Component, Index   Back   Previous   Next