vkmEngine 1.0.15
A C++ game engine · vkmengine.com
Loading...
Searching...
No Matches
Vkm::Engine::Math::Gradient Struct Reference

A colour over a span from 0 to 1, straight between its keys in linear RGBA. More...

#include <curve.h>

Public Member Functions

glm::vec4 at (float t) const
 The colour at t.

Detailed Description

A colour over a span from 0 to 1, straight between its keys in linear RGBA.

None reads white; one reads its colour throughout; before the first key and after the last the end colour holds.

Member Function Documentation

◆ at()

glm::vec4 Vkm::Engine::Math::Gradient::at ( float t) const
inline

The colour at t.

Parameters
tWhere in the span, 0 to 1.
Returns
The colour there.

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