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

Similarly, GrColor4f is 4 floats for R, G, B, A, in that order. More...

#include <GrColor.h>

Public Member Functions

 GrColor4f (float r, float g, float b, float a)
 
GrColor toGrColor () const
 
SkColor4f toSkColor4f () const
 
GrColor4f opaque () const
 
GrColor4f premul () const
 

Static Public Member Functions

static GrColor4f FromGrColor (GrColor color)
 
static GrColor4f FromSkColor4f (const SkColor4f &color)
 

Public Attributes

float fRGBA [4]
 

Detailed Description

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.


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