Docs (4.0.0)
class UIColor method

alpha

Returns a new UIColor instance with increased transparency.

alpha(alpha: number): UIColor

Parameters

  • alpha — The opacity change to apply, 0 meaining fully transparent, and 1 meaning no change

Return value

A new instance of UIColor.

Example

// Modifying a theme color
ui.cell(
  { background: ui.color.BACKGROUND.alpha(0.5) },
  // ...
)

Related