draw  0.0.0
Public Member Functions | Public Attributes | List of all members
draw::Color Struct Reference

RGBA floating-point color. More...

#include <draw.h>

Public Member Functions

 Color ()=default
 construct from zero values More...
 
 Color (float r, float g, float b, float a=1.0f)
 construct from parameters More...
 

Public Attributes

float r {0.0f}
 red component More...
 
float g {0.0f}
 green component More...
 
float b {0.0f}
 blue component More...
 
float a {1.0f}
 alpha component More...
 

Detailed Description

RGBA floating-point color.

Constructor & Destructor Documentation

draw::Color::Color ( )
default

construct from zero values

draw::Color::Color ( float  r,
float  g,
float  b,
float  a = 1.0f 
)
inline

construct from parameters

Member Data Documentation

float draw::Color::a {1.0f}

alpha component

float draw::Color::b {0.0f}

blue component

float draw::Color::g {0.0f}

green component

float draw::Color::r {0.0f}

red component


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