warning: this plugin if use in a browser is useable only server
color-code-entity-light-plugin
adds 2 new entities ColorCodeImageEntity and ColorCodeSpriteEntity which itself adds new methods.
keepAlpha(value: boolean): this
setAlpha(value: number): this
getAlpha(): number
changeColor(
from: [red, green, blue],
to: [red, green, blue]
): this
removeColor(from: [red, green, blue]): this
Example:
class Entity extends ColorCodeImageEntity {
init() {
this.changeColor([253, 49, 80], [253, 49, 170])
}
}