blob: 860393892be3a8e3a55b4ff5c91df50414fcec12 [file] [log] [blame]
#ifndef _RIVE_PAINT_COLOR_HPP_
#define _RIVE_PAINT_COLOR_HPP_
#include <cmath>
#include <cstdint>
namespace rive {
using ColorInt = uint32_t;
ColorInt colorARGB(int a, int r, int g, int b);
unsigned int colorRed(ColorInt value);
unsigned int colorGreen(ColorInt value);
unsigned int colorBlue(ColorInt value);
unsigned int colorAlpha(ColorInt value);
float colorOpacity(unsigned int value);
ColorInt colorWithAlpha(ColorInt value, unsigned int a);
ColorInt colorWithOpacity(ColorInt value, float opacity);
ColorInt colorModulateOpacity(ColorInt value, float opacity);
ColorInt colorLerp(ColorInt from, ColorInt to, float mix);
} // namespace rive
#endif