Skip to content

lcd.getContrastingColor

since 26.1.0

Get the contrasting color for a given background.

local color = lcd.getContrastingColor(color)

Parameters

Name Type Required Description
color integer yes

Returns

color (integer): the contrasting color