(name, color, z = 0)
| 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) |