OpenShot Library | libopenshot
0.2.2
|
Go to the documentation of this file.
28 #ifndef OPENSHOT_COLOR_H
29 #define OPENSHOT_COLOR_H
32 #include <QtGui/QColor>
54 Color(
string color_hex);
57 Color(
unsigned char Red,
unsigned char Green,
unsigned char Blue,
unsigned char Alpha);
66 static long GetDistance(
long R1,
long G1,
long B1,
long R2,
long G2,
long B2);
Color()
Default constructor.
Json::Value JsonValue()
Generate Json::JsonValue for this object.
Keyframe green
Curve representing the green value (0 - 255)
This namespace is the default namespace for all code in the openshot library.
string GetColorHex(int64_t frame_number)
Get the HEX value of a color at a specific frame.
void SetJsonValue(Json::Value root)
Load Json::JsonValue into this object.
string Json()
Get and Set JSON methods.
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.
Keyframe blue
Curve representing the red value (0 - 255)
Keyframe red
Curve representing the red value (0 - 255)
void SetJson(string value)
Load JSON string into this object.
Keyframe alpha
Curve representing the alpha value (0 - 255)