Muto 0.0.1
Cross-Platform Application Template
GitHub Repo | Muto Updates | Muto's Author
Loading...
Searching...
No Matches
Muto::Color Namespace Reference

Provides commonly used colors and color manipulation functions. More...

Functions

static glm::vec4 Black ()
 Returns a vec4 representing the color black.
 
static glm::vec4 Blue ()
 Returns a vec4 representing the color blue.
 
static glm::vec4 Brown ()
 Returns a vec4 representing the color brown.
 
static glm::vec4 Cyan ()
 Returns a vec4 representing the color cyan.
 
static glm::vec4 Gray ()
 Returns a vec4 representing the color gray.
 
static glm::vec4 Green ()
 Returns a vec4 representing the color green.
 
static glm::vec4 Indigo ()
 Returns a vec4 representing the color indigo.
 
static glm::vec4 Magenta ()
 Returns a vec4 representing the color magenta.
 
static glm::vec4 Orange ()
 Returns a vec4 representing the color orange.
 
static glm::vec4 Pink ()
 Returns a vec4 representing the color pink.
 
static glm::vec4 Purple ()
 Returns a vec4 representing the color purple.
 
static glm::vec4 Red ()
 Returns a vec4 representing the color red.
 
static glm::vec4 SetAlpha (const glm::vec4 &color, float alpha=0.0f)
 Sets the alpha component of the given color to the specified value.
 
static glm::vec4 StripAlpha (const glm::vec4 &color)
 Strips the alpha component from the given color, setting it to 1.0 (fully opaque).
 
static glm::vec4 Transparent ()
 Returns a vec4 representing a fully transparent color.
 
static glm::vec4 White ()
 Returns a vec4 representing the color white.
 
static glm::vec4 Yellow ()
 Returns a vec4 representing the color yellow.
 

Detailed Description

Provides commonly used colors and color manipulation functions.

Function Documentation

◆ Black()

static glm::vec4 Muto::Color::Black ( )
static

Returns a vec4 representing the color black.

18{ return glm::vec4(0.0f, 0.0f, 0.0f, 1.0f); }

◆ Blue()

static glm::vec4 Muto::Color::Blue ( )
static

Returns a vec4 representing the color blue.

31{ return glm::vec4(0.0f, 0.0f, 1.0f, 1.0f); }

◆ Brown()

static glm::vec4 Muto::Color::Brown ( )
static

Returns a vec4 representing the color brown.

44{ return glm::vec4(0.6f, 0.4f, 0.2f, 1.0f); }

◆ Cyan()

static glm::vec4 Muto::Color::Cyan ( )
static

Returns a vec4 representing the color cyan.

38{ return glm::vec4(0.0f, 1.0f, 1.0f, 1.0f); }

◆ Gray()

static glm::vec4 Muto::Color::Gray ( )
static

Returns a vec4 representing the color gray.

20{ return glm::vec4(0.5f, 0.5f, 0.5f, 1.0f); }

◆ Green()

static glm::vec4 Muto::Color::Green ( )
static

Returns a vec4 representing the color green.

29{ return glm::vec4(0.0f, 1.0f, 0.0f, 1.0f); }

◆ Indigo()

static glm::vec4 Muto::Color::Indigo ( )
static

Returns a vec4 representing the color indigo.

33{ return glm::vec4(0.29f, 0.0f, 0.51f, 1.0f); }

◆ Magenta()

static glm::vec4 Muto::Color::Magenta ( )
static

Returns a vec4 representing the color magenta.

40{ return glm::vec4(1.0f, 0.0f, 1.0f, 1.0f); }

◆ Orange()

static glm::vec4 Muto::Color::Orange ( )
static

Returns a vec4 representing the color orange.

25{ return glm::vec4(1.0f, 0.5f, 0.0f, 1.0f); }

◆ Pink()

static glm::vec4 Muto::Color::Pink ( )
static

Returns a vec4 representing the color pink.

42{ return glm::vec4(1.0f, 0.75f, 0.8f, 1.0f); }

◆ Purple()

static glm::vec4 Muto::Color::Purple ( )
static

Returns a vec4 representing the color purple.

35{ return glm::vec4(0.5f, 0.0f, 0.5f, 1.0f); }

◆ Red()

static glm::vec4 Muto::Color::Red ( )
static

Returns a vec4 representing the color red.

23{ return glm::vec4(1.0f, 0.0f, 0.0f, 1.0f); }

◆ SetAlpha()

static glm::vec4 Muto::Color::SetAlpha ( const glm::vec4 &  color,
float  alpha = 0.0f 
)
static

Sets the alpha component of the given color to the specified value.

51{ return glm::vec4(color.x, color.y, color.z, alpha);}

◆ StripAlpha()

static glm::vec4 Muto::Color::StripAlpha ( const glm::vec4 &  color)
static

Strips the alpha component from the given color, setting it to 1.0 (fully opaque).

49{ return glm::vec4(color.x, color.y, color.z, 1.0f); }

◆ Transparent()

static glm::vec4 Muto::Color::Transparent ( )
static

Returns a vec4 representing a fully transparent color.

46{ return glm::vec4(0.0f, 0.0f, 0.0f, 0.0f); }

◆ White()

static glm::vec4 Muto::Color::White ( )
static

Returns a vec4 representing the color white.

16{ return glm::vec4(1.0f, 1.0f, 1.0f, 1.0f); }

◆ Yellow()

static glm::vec4 Muto::Color::Yellow ( )
static

Returns a vec4 representing the color yellow.

27{ return glm::vec4(1.0f, 1.0f, 0.0f, 1.0f); }