Skip to content

Erternys/light-plugin-color-code-entity

Repository files navigation

color-code-entity-light-plugin

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])
  }
}

before: before after: after

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published