Blender  V3.3
Macros | Functions
BKE_colorband.h File Reference

Go to the source code of this file.

Macros

#define MAXCOLORBAND   32
 

Functions

void BKE_colorband_init (struct ColorBand *coba, bool rangetype)
 
void BKE_colorband_init_from_table_rgba (struct ColorBand *coba, const float(*array)[4], int array_len, bool filter_sample)
 
struct ColorBandBKE_colorband_add (bool rangetype)
 
bool BKE_colorband_evaluate (const struct ColorBand *coba, float in, float out[4])
 
void BKE_colorband_evaluate_table_rgba (const struct ColorBand *coba, float **array, int *size)
 
struct CBDataBKE_colorband_element_add (struct ColorBand *coba, float position)
 
bool BKE_colorband_element_remove (struct ColorBand *coba, int index)
 
void BKE_colorband_update_sort (struct ColorBand *coba)
 

Macro Definition Documentation

◆ MAXCOLORBAND

#define MAXCOLORBAND   32

ColorBand.data length.

Definition at line 16 of file BKE_colorband.h.

Function Documentation

◆ BKE_colorband_add()

struct ColorBand* BKE_colorband_add ( bool  rangetype)

◆ BKE_colorband_element_add()

struct CBData* BKE_colorband_element_add ( struct ColorBand coba,
float  position 
)

◆ BKE_colorband_element_remove()

bool BKE_colorband_element_remove ( struct ColorBand coba,
int  index 
)

Definition at line 628 of file colorband.c.

References Freestyle::a, ColorBand::cur, ColorBand::data, and ColorBand::tot.

Referenced by colorband_del_cb().

◆ BKE_colorband_evaluate()

bool BKE_colorband_evaluate ( const struct ColorBand coba,
float  in,
float  out[4] 
)

◆ BKE_colorband_evaluate_table_rgba()

void BKE_colorband_evaluate_table_rgba ( const struct ColorBand coba,
float **  array,
int *  size 
)

◆ BKE_colorband_init()

void BKE_colorband_init ( struct ColorBand coba,
bool  rangetype 
)

◆ BKE_colorband_init_from_table_rgba()

void BKE_colorband_init_from_table_rgba ( struct ColorBand coba,
const float(*)  array[4],
int  array_len,
bool  filter_sample 
)

◆ BKE_colorband_update_sort()

void BKE_colorband_update_sort ( struct ColorBand coba)