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

Function drawBackground

examples/commodetto/mini-drag/main.js:36–38  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

34button.alpha = parseBMP(new Resource("button-alpha.bmp"));
35
36function drawBackground() {
37 render.fillPattern(background, 0, 0, render.width, render.height, 0, 0, background.width, background.height);
38}
39
40class Rectangle {
41 constructor(x, y, w, h) {

Callers 2

drawMethod · 0.85
main.jsFile · 0.85

Calls 1

fillPatternMethod · 0.80

Tested by

no test coverage detected