MCPcopy
hub / github.com/4ian/GDevelop / setColor

Method setColor

GDJS/Runtime/spriteruntimeobject.ts:765–767  ·  view source on GitHub ↗

* Change the tint of the sprite object. * * @param rgbOrHexColor The color as a string, in RGB format ("128;200;255") or Hex format.

(rgbOrHexColor: string)

Source from the content-addressed store, hash-verified

763 * @param rgbOrHexColor The color as a string, in RGB format ("128;200;255") or Hex format.
764 */
765 setColor(rgbOrHexColor: string): void {
766 this._renderer.setColor(rgbOrHexColor);
767 }
768
769 /**
770 * Get the tint of the sprite object.

Callers 1

Calls 1

setColorMethod · 0.65

Tested by

no test coverage detected