Kodi Documentation 18.0
Kodi is an open source media player and entertainment hub.
ColorUtils Class Reference

#include <ColorUtils.h>

Static Public Member Functions

static UTILS::Color ChangeOpacity (const UTILS::Color color, const float opacity)
 Change the opacity of a given color. More...
 

Member Function Documentation

◆ ChangeOpacity()

UTILS::Color ColorUtils::ChangeOpacity ( const UTILS::Color  color,
const float  opacity 
)
static

Change the opacity of a given color.

Parameters
colorThe original color
opacityThe opacity value as a float
Returns
the original color with the changed opacity/alpha value

The documentation for this class was generated from the following files: