MCPcopy Create free account
hub / github.com/melonjs/melonJS / onResetEvent

Method onResetEvent

packages/melonjs/src/renderable/colorlayer.js:35–42  ·  view source on GitHub ↗
(name, color, z = 0)

Source from the content-addressed store, hash-verified

33 }
34
35 onResetEvent(name, color, z = 0) {
36 // apply given parameters
37 this.name = name;
38 this.pos.z = z;
39 this.floating = true;
40 // string (#RGB, #ARGB, #RRGGBB, #AARRGGBB)
41 this.color.parseCSS(color);
42 }
43
44 /**
45 * draw this color layer (automatically called by melonJS)

Callers 1

constructorMethod · 0.95

Calls 1

parseCSSMethod · 0.80

Tested by

no test coverage detected