rgbaToStandalone

fun rgbaToStandalone(rgba: <Error class: unknown class>, dark: Boolean, standaloneRgba: <Error class: unknown class>)

Adjusts @rgba to be suitable as a standalone color.

It will typically be darker for light background, and lighter for dark background, ensuring contrast.

Since

1.6

Parameters

rgba

a background color

dark

Whether to calculate standalone color for light or dark background

standaloneRgba

return location for the standalone color