4D v13SVG_Define_pattern |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
4D v13
SVG_Define_pattern
SVG_Define_pattern
The SVG_Define_pattern command is used to set a new custom pattern in the SVG container designated by parentSVGObject and returns its reference. If parentSVGObject is not (or does not belong to) an SVG document, an error is generated. The patternID parameter specifies the name of the pattern. This name will be used to associate the pattern with an object. If an element with the same name already exists, an error is generated. The optional width, height, x, y, unit and viewBox parameters define the reference rectangle of the pattern, in other words, the way the pattern tiles will be placed and spaced. The pattern will be associated as fill or stroke paint by passing the "url(#id)" string as the value when a color expression is expected. Setting a pattern and using it to fill an ellipse: //Definition of pattern Setting a pattern and using it to fill and stroke the outline of an ellipse: //Definition of pattern |
PROPERTIES
Product: 4D
INDEX HISTORY
Created: 4D v12 |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||