Vesper 0.5.1
Vesper is short form for the Latin word for "Bat", as Vesper is designed to be small, lightweight, and easily handle things like particles and flocking behaviors in accordance with the nature of bats. \n It is meant to be a particle simulation, VFX editor, and CAN be used secondarily as a small game engine.
GitHub | Vesper Updates | Creator
Loading...
Searching...
No Matches
Vesper::Color Namespace Reference

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

Functions

static glm::vec4 White ()
 Returns a vec4 representing the color white.
static glm::vec4 Black ()
 Returns a vec4 representing the color black.
static glm::vec4 Gray ()
 Returns a vec4 representing the color gray.
static glm::vec4 Red ()
 Returns a vec4 representing the color red.
static glm::vec4 Orange ()
 Returns a vec4 representing the color orange.
static glm::vec4 Yellow ()
 Returns a vec4 representing the color yellow.
static glm::vec4 Green ()
 Returns a vec4 representing the color green.
static glm::vec4 Blue ()
 Returns a vec4 representing the color blue.
static glm::vec4 Indigo ()
 Returns a vec4 representing the color indigo.
static glm::vec4 Purple ()
 Returns a vec4 representing the color purple.
static glm::vec4 Cyan ()
 Returns a vec4 representing the color cyan.
static glm::vec4 Magenta ()
 Returns a vec4 representing the color magenta.
static glm::vec4 Pink ()
 Returns a vec4 representing the color pink.
static glm::vec4 Brown ()
 Returns a vec4 representing the color brown.
static glm::vec4 Transparent ()
 Returns a vec4 representing a fully transparent color.
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 SetAlpha (const glm::vec4 &color, float alpha=0.0f)
 Sets the alpha component of the given color to the specified value.

Detailed Description

Provides commonly used colors and color manipulation functions.

Function Documentation

◆ Black()

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

Returns a vec4 representing the color black.

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

◆ Blue()

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

Returns a vec4 representing the color blue.

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

◆ Brown()

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

Returns a vec4 representing the color brown.

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

◆ Cyan()

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

Returns a vec4 representing the color cyan.

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

◆ Gray()

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

Returns a vec4 representing the color gray.

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

◆ Green()

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

Returns a vec4 representing the color green.

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

◆ Indigo()

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

Returns a vec4 representing the color indigo.

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

◆ Magenta()

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

Returns a vec4 representing the color magenta.

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

◆ Orange()

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

Returns a vec4 representing the color orange.

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

◆ Pink()

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

Returns a vec4 representing the color pink.

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

◆ Purple()

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

Returns a vec4 representing the color purple.

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

◆ Red()

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

Returns a vec4 representing the color red.

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

◆ SetAlpha()

glm::vec4 Vesper::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()

glm::vec4 Vesper::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()

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

Returns a vec4 representing a fully transparent color.

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

◆ White()

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

Returns a vec4 representing the color white.

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

◆ Yellow()

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

Returns a vec4 representing the color yellow.

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