Blender V5.3
colorband.cc File Reference
#include "MEM_guardedalloc.h"
#include "BLI_heap.hh"
#include "BLI_math_color_c.hh"
#include "BLI_math_vector_c.hh"
#include "BLI_utildefines.hh"
#include "DNA_key_types.h"
#include "DNA_texture_types.h"
#include "BKE_colorband.hh"
#include "BKE_idtype.hh"
#include "BKE_key.hh"

Go to the source code of this file.

Classes

struct  blender::ColorResampleElem

Namespaces

namespace  blender
 BMesh Iterators.

Macros

#define HUE_INTERP(h_a, h_b)
#define HUE_MOD(h)

Functions

void blender::BKE_colorband_init (ColorBand *coba, bool rangetype)
static void blender::colorband_init_from_table_rgba_simple (ColorBand *coba, const float(*array)[4], const int array_len)
ColorBand * blender::BKE_colorband_add (bool rangetype)
static float blender::colorband_hue_interp (const int ipotype_hue, const float mfac, const float fac, float h1, float h2)
bool blender::BKE_colorband_evaluate (const ColorBand *coba, float in, float out[4])
void blender::BKE_colorband_evaluate_table_rgba (const ColorBand *coba, float **array, int *size)
static int blender::vergcband (const void *a1, const void *a2)
void blender::BKE_colorband_update_sort (ColorBand *coba)
CBData * blender::BKE_colorband_element_add (ColorBand *coba, float position)
bool blender::BKE_colorband_element_remove (ColorBand *coba, int index)
void blender::BKE_colorband_foreach_working_space_color (ColorBand *coba, const IDTypeForeachColorFunctionCallback &fn)
Color Ramp Re-Sample
static float blender::color_sample_remove_cost (const ColorResampleElem *c)
static float blender::filter_gauss (float x)
static void blender::colorband_init_from_table_rgba_resample (ColorBand *coba, const float(*array)[4], const int array_len, bool filter_samples)
void blender::BKE_colorband_init_from_table_rgba (ColorBand *coba, const float(*array)[4], int array_len, bool filter_samples)

Macro Definition Documentation

◆ HUE_INTERP

#define HUE_INTERP ( h_a,
h_b )
Value:
((mfac * (h_a)) + (fac * (h_b)))

Referenced by blender::colorband_hue_interp().

◆ HUE_MOD

#define HUE_MOD ( h)
Value:
(((h) < 1.0f) ? (h) : (h) - 1.0f)

Referenced by blender::colorband_hue_interp().