Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRay Molenkamp <github@lazydodo.com>2017-12-12 02:19:55 +0300
committerCampbell Barton <ideasman42@gmail.com>2017-12-12 05:11:38 +0300
commit7ae4c3a01923cccfa372072b880507c58557f45a (patch)
tree0e16f658b87194e29d4ab009eb2d63890287590b /source/blender/blenkernel/BKE_colorband.h
parent43f33ea30052b525b5cee5cea2a9e6431597660c (diff)
Add eyedropper to color-ramp widget
D2886 by @LazyDodo with edit's by @campbellbarton The line drawn with the eyedropper is used to fill the color-ramp.
Diffstat (limited to 'source/blender/blenkernel/BKE_colorband.h')
-rw-r--r--source/blender/blenkernel/BKE_colorband.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/blenkernel/BKE_colorband.h b/source/blender/blenkernel/BKE_colorband.h
index aa64e793331..6841d94d360 100644
--- a/source/blender/blenkernel/BKE_colorband.h
+++ b/source/blender/blenkernel/BKE_colorband.h
@@ -36,6 +36,8 @@ struct ColorBand;
#define MAXCOLORBAND 32
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);
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);