b2dSetImagePaletteColor

Sets one palette entry of an indexed image to an RGBA colour.

2D Overlay

Parameters & Returns

Parameters

imageHandle Int
index Int
r Int
g Int
b Int
a Int

Returns

Void

Quick Summary

Sets one palette entry of an indexed image to an RGBA colour.

Technical Exegesis...

Overwrites palette entry `index` with (r, g, b, a), instantly recolouring every pixel that uses it. Build custom ramps this way (e.g. recolour a water band into a fire ramp) then cycle them.

Example

Example.bam
; No example implemented yet