|
OpenShot Library | libopenshot
0.1.1
|
This class represents a color (used on the timeline and clips) More...
#include <Color.h>
Public Member Functions | |
| Color () | |
| Default constructor. More... | |
| Color (string color_hex) | |
| Constructor which takes a HEX color code. More... | |
| Color (unsigned char Red, unsigned char Green, unsigned char Blue, unsigned char Alpha) | |
| Constructor which takes R,G,B,A. More... | |
| Color (Keyframe Red, Keyframe Green, Keyframe Blue, Keyframe Alpha) | |
| Constructor which takes 4 existing Keyframe curves. More... | |
| string | GetColorHex (long int frame_number) |
| Get the HEX value of a color at a specific frame. More... | |
| string | Json () |
| Get and Set JSON methods. More... | |
| Json::Value | JsonValue () |
| Generate Json::JsonValue for this object. More... | |
| void | SetJson (string value) throw (InvalidJSON) |
| Load JSON string into this object. More... | |
| void | SetJsonValue (Json::Value root) |
| Load Json::JsonValue into this object. More... | |
Static Public Member Functions | |
| 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 colors) More... | |
Public Attributes | |
| Keyframe | alpha |
| Curve representing the alpha value (0 - 255) More... | |
| Keyframe | blue |
| Curve representing the red value (0 - 255) More... | |
| Keyframe | green |
| Curve representing the green value (0 - 255) More... | |
| Keyframe | red |
| Curve representing the red value (0 - 255) More... | |
This class represents a color (used on the timeline and clips)
Colors are represented by 4 curves, representing red, green, blue, and alpha. The curves can be used to animate colors over time.
| Color::Color | ( | string | color_hex | ) |
| Color::Color | ( | unsigned char | Red, |
| unsigned char | Green, | ||
| unsigned char | Blue, | ||
| unsigned char | Alpha | ||
| ) |
| string Color::GetColorHex | ( | long int | frame_number | ) |
|
static |
| string Color::Json | ( | ) |
| Json::Value Color::JsonValue | ( | ) |
| void Color::SetJson | ( | string | value | ) | |
| throw | ( | InvalidJSON | |||
| ) | |||||
| void Color::SetJsonValue | ( | Json::Value | root | ) |
| Keyframe openshot::Color::alpha |
| Keyframe openshot::Color::blue |
| Keyframe openshot::Color::green |
| Keyframe openshot::Color::red |
1.8.6