OpenShot Library | libopenshot
0.4.0
|
Go to the documentation of this file.
13 #ifndef OPENSHOT_COLOR_H
14 #define OPENSHOT_COLOR_H
39 explicit Color(QColor);
42 explicit Color(std::string color_hex);
43 explicit Color(
const char* color_hex);
46 Color(
unsigned char Red,
unsigned char Green,
unsigned char Blue,
unsigned char Alpha);
58 static long GetDistance(
long R1,
long G1,
long B1,
long R2,
long G2,
long B2);
61 std::string
Json()
const;
63 void SetJson(
const std::string value);
Color()
Default constructor.
This namespace is the default namespace for all code in the openshot library.
static long GetDistance(long R1, long G1, long B1, long R2, long G2, long B2)
Get the distance between 2 RGB pairs. (0=identical colors, 10=very close colors, 760=very different c...
Header file for the Keyframe class.
This class represents a color (used on the timeline and clips)
A Keyframe is a collection of Point instances, which is used to vary a number or property over time.
void SetJsonValue(const Json::Value root)
Load Json::Value into this object.
openshot::Keyframe green
Curve representing the green value (0 - 255)
Json::Value JsonValue() const
Generate Json::Value for this object.
void SetJson(const std::string value)
Load JSON string into this object.
std::vector< int > GetColorRGBA(int64_t frame_number)
openshot::Keyframe alpha
Curve representing the alpha value (0 - 255)
openshot::Keyframe red
Curve representing the red value (0 - 255)
std::string GetColorHex(int64_t frame_number)
Get the HEX value of a color at a specific frame.
std::string Json() const
Generate JSON string of this object.
openshot::Keyframe blue
Curve representing the red value (0 - 255)