createPattern : border

The value of each pixel is determined by the distance to the edge of the image. The closer one or more edges are, the darker the pixel will be. This pattern is not random and there are no parameters. Border creates the exact same image every time.

Basic Example

"patina" : {
    "type"          : "createPattern",
    "patternName"   : "border"
}

Playground

Here you can test this pattern. Change the values inside the textarea or rewrite it completely, then hit "apply".