MCPcopy Create free account
hub / github.com/Moddable-OpenSource/moddable / origin

Function origin

examples/commodetto/docs/main.js:39–59  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

37}
38
39function origin() {
40 poco.fillRectangle(gray, 0, 0, poco.width, poco.height);
41
42 poco.origin(10, 10);
43 poco.fillRectangle(red, 0, 0, 40, 20);
44
45 poco.origin(25, 25);
46 poco.fillRectangle(green, 0, 0, 40, 20);
47
48 poco.origin(25, 25);
49 poco.fillRectangle(blue, 0, 0, 40, 20);
50
51 poco.blendRectangle(black, 128, -4, -4, 20, 10);
52 poco.origin();
53
54 poco.blendRectangle(black, 128, -4, -4, 20, 10);
55 poco.origin();
56
57 poco.blendRectangle(black, 128, -4, -4, 20, 10);
58 poco.origin();
59}
60
61function clip() {
62 poco.fillRectangle(gray, 0, 0, poco.width, poco.height);

Callers

nothing calls this directly

Calls 3

blendRectangleMethod · 0.80
fillRectangleMethod · 0.65
originMethod · 0.65

Tested by

no test coverage detected