#include <gradient.hpp>
|
| gradient ()=default |
|
| gradient (std::vector< gradient_entry > entries) |
|
| gradient (std::vector< fixed_gradient_entry > const &entries) |
|
| gradient (std::vector< rgb > const &colors) |
|
| gradient (std::vector< hsv > const &colors) |
|
std::size_t | size () const |
|
bool | empty () const |
|
const_iterator | begin () const |
|
const_iterator | end () const |
|
iterator | begin () |
|
iterator | end () |
|
fixed_gradient_entry & | front () |
|
fixed_gradient_entry & | back () |
|
fixed_gradient_entry const & | front () const |
|
fixed_gradient_entry const & | back () const |
|
std::pair< iterator, bool > | emplace (fixed_gradient_entry entry) |
|
std::pair< iterator, bool > | emplace (gradient_entry entry) |
|
const_iterator | lower_bound (float t) const |
|
const_iterator | upper_bound (float t) const |
|
void | normalize () |
|
fixed_gradient_entry const & | operator[] (std::size_t i) const |
|
fixed_gradient_entry & | operator[] (std::size_t i) |
|
rgb | sample (float t, blending_method=blend_linear) const |
|
void | sample_uniform (float period, float offset, std::vector< rgb > &buffer, blending_method method=blend_linear) const |
|
std::vector< rgb > | sample_uniform (float period, float offset, std::size_t num_samples, std::vector< rgb > reuse_buffer={}, blending_method method=blend_linear) const |
|
std::string | to_string () const |
|
◆ const_iterator
◆ iterator
◆ gradient() [1/5]
neo::gradient::gradient |
( |
| ) |
|
|
default |
◆ gradient() [2/5]
◆ gradient() [3/5]
◆ gradient() [4/5]
neo::gradient::gradient |
( |
std::vector< rgb > const & |
colors | ) |
|
|
explicit |
◆ gradient() [5/5]
neo::gradient::gradient |
( |
std::vector< hsv > const & |
colors | ) |
|
|
explicit |
◆ back() [1/2]
◆ back() [2/2]
◆ begin() [1/2]
◆ begin() [2/2]
◆ emplace() [1/2]
◆ emplace() [2/2]
◆ empty()
bool neo::gradient::empty |
( |
| ) |
const |
|
inline |
◆ end() [1/2]
◆ end() [2/2]
◆ front() [1/2]
◆ front() [2/2]
◆ lower_bound()
◆ normalize()
void neo::gradient::normalize |
( |
| ) |
|
◆ operator[]() [1/2]
◆ operator[]() [2/2]
◆ sample()
◆ sample_uniform() [1/2]
std::vector< rgb > neo::gradient::sample_uniform |
( |
float |
period, |
|
|
float |
offset, |
|
|
std::size_t |
num_samples, |
|
|
std::vector< rgb > |
reuse_buffer = {} , |
|
|
blending_method |
method = blend_linear |
|
) |
| const |
◆ sample_uniform() [2/2]
◆ size()
std::size_t neo::gradient::size |
( |
| ) |
const |
|
inline |
◆ to_string()
std::string neo::gradient::to_string |
( |
| ) |
const |
◆ upper_bound()
◆ _entries
The documentation for this class was generated from the following files: