MCPcopy
hub / github.com/fabricjs/fabric.js / createPattern

Function createPattern

test/unit/pattern.js:14–18  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

12 setSrc(img, IMG_SRC);
13
14 function createPattern() {
15 return new fabric.Pattern({
16 source: img
17 });
18 }
19
20 QUnit.test('constructor', function(assert) {
21 assert.ok(fabric.Pattern);

Callers 1

pattern.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected