Skia
2DGraphicsLibrary
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
SkColor4f Struct Reference

Public Member Functions

bool operator== (const SkColor4f &other) const
 
bool operator!= (const SkColor4f &other) const
 
const float * vec () const
 
float * vec ()
 
SkColor toSkColor () const
 
SkColor4f pin () const
 
SkPM4f premul () const
 

Static Public Member Functions

static SkColor4f Pin (float r, float g, float b, float a)
 
static SkColor4f FromColor (SkColor)
 Convert to SkColor4f, assuming SkColor is sRGB.
 
static SkColor4f FromColor3f (SkColor3f, float a)
 

Public Attributes

float fR
 
float fG
 
float fB
 
float fA
 

The documentation for this struct was generated from the following file: