Skia
2DGraphicsLibrary
|
Similarly, GrColor4f is 4 floats for R, G, B, A, in that order. More...
#include <GrColor.h>
Public Types | |
enum | Illegal_Constructor { kIllegalConstructor } |
Public Member Functions | |
GrColor4f (float r, float g, float b, float a) | |
GrColor4f (Illegal_Constructor) | |
GrColor4f | modulate (const GrColor4f &x) const |
GrColor4f | mulByScalar (float x) const |
bool | operator== (const GrColor4f &other) const |
bool | operator!= (const GrColor4f &other) const |
GrColor | toGrColor () const |
SkColor4f | toSkColor4f () const |
GrColor4f | opaque () const |
bool | isOpaque () const |
GrColor4f | premul () const |
GrColor4f | unpremul () const |
Static Public Member Functions | |
static GrColor4f | OpaqueWhite () |
static GrColor4f | TransparentBlack () |
static GrColor4f | FromGrColor (GrColor color) |
static GrColor4f | FromSkColor4f (const SkColor4f &color) |
Public Attributes | |
float | fRGBA [4] |
Similarly, GrColor4f is 4 floats for R, G, B, A, in that order.
And like GrColor, whether the color is premultiplied or not depends on the context.