diff options
Diffstat (limited to 'xbmc/utils/ColorUtils.h')
| -rw-r--r-- | xbmc/utils/ColorUtils.h | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/xbmc/utils/ColorUtils.h b/xbmc/utils/ColorUtils.h new file mode 100644 index 0000000..9522a76 --- /dev/null +++ b/xbmc/utils/ColorUtils.h | |||
| @@ -0,0 +1,23 @@ | |||
| 1 | /* | ||
| 2 | * Copyright (C) 2005-2018 Team Kodi | ||
| 3 | * This file is part of Kodi - https://kodi.tv | ||
| 4 | * | ||
| 5 | * SPDX-License-Identifier: GPL-2.0-or-later | ||
| 6 | * See LICENSES/README.md for more information. | ||
| 7 | */ | ||
| 8 | |||
| 9 | #pragma once | ||
| 10 | |||
| 11 | #include "Color.h" | ||
| 12 | |||
| 13 | class ColorUtils | ||
| 14 | { | ||
| 15 | public: | ||
| 16 | /*! \brief Change the opacity of a given color | ||
| 17 | |||
| 18 | \param color The original color | ||
| 19 | \param opacity The opacity value as a float | ||
| 20 | \return the original color with the changed opacity/alpha value | ||
| 21 | */ | ||
| 22 | static UTILS::Color ChangeOpacity(const UTILS::Color color, const float opacity); | ||
| 23 | }; | ||
