|
Blender
V2.93
|
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], const int array_len, bool filter_sample) |
| struct ColorBand * | BKE_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 CBData * | BKE_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) |
| #define MAXCOLORBAND 32 |
ColorBand.data length.
Definition at line 32 of file BKE_colorband.h.
| struct ColorBand* BKE_colorband_add | ( | bool | rangetype | ) |
Definition at line 312 of file colorband.c.
References BKE_colorband_init(), and MEM_callocN.
Referenced by BKE_linestyle_color_modifier_add(), BKE_texture_pointdensity_init_data(), dynamicPaint_createType(), initData(), node_composit_init_valtorgb(), node_shader_init_valtorgb(), and valtorgb_init().
Definition at line 618 of file colorband.c.
References BKE_colorband_evaluate(), BKE_colorband_update_sort(), ColorBand::cur, ColorBand::data, MAXCOLORBAND, NULL, CBData::pos, CBData::r, ColorBand::tot, and zero_v4().
Referenced by colorband_add_cb(), and ui_do_but_COLORBAND().
| bool BKE_colorband_element_remove | ( | struct ColorBand * | coba, |
| int | index | ||
| ) |
Definition at line 644 of file colorband.c.
References Freestyle::a, ColorBand::cur, ColorBand::data, and ColorBand::tot.
Referenced by colorband_del_cb().
Referenced by ColorBandFunction::call(), deformStroke(), do_projectpaint_thread(), DRW_evaluate_weight_to_color(), dynamic_paint_paint_mesh_cell_point_cb_ex(), dynamic_paint_paint_single_point_cb_ex(), dynamicPaint_updatePointData(), blender::nodes::execute_on_component(), blender::compositor::ColorRampOperation::executePixelSampled(), Freestyle_evaluateColorRamp(), multitex(), node_shader_exec_valtorgb(), paint_2d_gradient_fill(), paint_brush_color_get(), pointdensity_color(), tex_normal_derivate(), ui_draw_but_COLORBAND(), and valtorgb_colorfn().
| void BKE_colorband_evaluate_table_rgba | ( | const struct ColorBand * | coba, |
| float ** | array, | ||
| int * | size | ||
| ) |
Referenced by DRW_globals_update(), and gpu_shader_valtorgb().
| void BKE_colorband_init | ( | struct ColorBand * | coba, |
| bool | rangetype | ||
| ) |
Definition at line 38 of file colorband.c.
References Freestyle::a, CBData::a, CBData::b, COLBAND_BLEND_RGB, COLBAND_INTERP_LINEAR, ColorBand::color_mode, ColorBand::cur, ColorBand::data, CBData::g, ColorBand::ipotype, MAXCOLORBAND, CBData::pos, CBData::r, and ColorBand::tot.
Referenced by BKE_blendfile_userdef_from_defaults(), BKE_colorband_add(), BKE_texture_colormapping_default(), blo_do_versions_userdef(), colorband_tools_dofunc(), blender::nodes::geo_node_attribute_color_ramp_init(), and initData().
| void BKE_colorband_init_from_table_rgba | ( | struct ColorBand * | coba, |
| const float(*) | array[4], | ||
| const int | array_len, | ||
| bool | filter_sample | ||
| ) |
Definition at line 293 of file colorband.c.
References colorband_init_from_table_rgba_resample(), and colorband_init_from_table_rgba_simple().
Referenced by eyedropper_colorband_apply().
| void BKE_colorband_update_sort | ( | struct ColorBand * | coba | ) |
Definition at line 596 of file colorband.c.
References Freestyle::a, CBData::cur, ColorBand::cur, ColorBand::data, ColorBand::tot, and vergcband().
Referenced by BKE_colorband_element_add(), colorband_update_cb(), ui_do_but_COLORBAND(), and ui_numedit_but_COLORBAND().