#include <sc_store.h>

Public Member Functions

 Color ()=default
 
 Color (float red, float green, float blue, float alpha)
 
bool operator!= (Color const &that) const
 
bool operator== (Color const &that) const
 

Public Attributes

float alpha
 
float blue
 Blue component of this color object, from 0.0 to 1.0. More...
 
float green
 Green component of this color object, from 0.0 to 1.0. More...
 
float red
 Red component of this color object, from 0.0 to 1.0. More...
 

Detailed Description

An RGBA color, where each channel is in normalized [0, 1] space.

Constructor & Destructor Documentation

◆ Color() [1/2]

SC::Store::Color::Color ( )
default

◆ Color() [2/2]

SC::Store::Color::Color ( float  red,
float  green,
float  blue,
float  alpha 
)

Constructor definition for a color. Takes four float values as parameters. This example represents the color red:

Color * red_color = new Color(1.0f, 0.0f, 0.0f, 1.0f);

Member Function Documentation

◆ operator!=()

bool SC::Store::Color::operator!= ( Color const &  that) const

◆ operator==()

bool SC::Store::Color::operator== ( Color const &  that) const

Member Data Documentation

◆ alpha

float SC::Store::Color::alpha

Alpha component of this color object, from 0.0 to 1.0. Used to define transparency level.

◆ blue

float SC::Store::Color::blue

Blue component of this color object, from 0.0 to 1.0.

◆ green

float SC::Store::Color::green

Green component of this color object, from 0.0 to 1.0.

◆ red

float SC::Store::Color::red

Red component of this color object, from 0.0 to 1.0.