Adding patterns for text and SVG elements

Modified on Tue, 03 Dec 2019 at 10:35 AM

Patterns can only be used with SVG images or text elements.

Store patterns in folder

First of all you need to upload the png or jpeg files that you would like to use as patterns, to the patterns directory or to your desired directory. 

Enabling patterns

You can define different patterns to every text or SVG image separately. For that you can enable an array of URLs to pattern image in the patterns property

//Example element object
    "type": "image",
    "source": "Image.svg",
    "title": "SVG Image",
    "parameters": {
        "colors": "#000,#fff,#990000,#83635c",
        "top": 300,
        "left": 450,
        "patterns": ["patterns/pattern_1.png", "patterns/pattern_2.png"]

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select atleast one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article