diff options
author | Ton Roosendaal <ton@blender.org> | 2006-10-28 00:27:13 +0400 |
---|---|---|
committer | Ton Roosendaal <ton@blender.org> | 2006-10-28 00:27:13 +0400 |
commit | 129cab4137d2a928e68eec7f7647b1f2b690686a (patch) | |
tree | dbb71785f612bbb1e919f102cfc78213f7302f4e /source/blender/makesdna/DNA_color_types.h | |
parent | a7d3a58ba9e7a42781a21c8015cdd51a76473056 (diff) |
New Curves Widget option: curves can get extrapolated extension.
Especially for Compositing it was annoying that colors always got clipped
in the 0.0-1.0 range. For this reason, extrapolated Curves now is the
default. Old saved files still have horizontal extrapolation.
Set the option with 'Tools' menu (wrench icon). This is a setting per
curve, so you might need to set all 4 curves for an RGBA curves widget.
Diffstat (limited to 'source/blender/makesdna/DNA_color_types.h')
-rw-r--r-- | source/blender/makesdna/DNA_color_types.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/source/blender/makesdna/DNA_color_types.h b/source/blender/makesdna/DNA_color_types.h index 9aae71b9cc9..32cbc39523b 100644 --- a/source/blender/makesdna/DNA_color_types.h +++ b/source/blender/makesdna/DNA_color_types.h @@ -53,11 +53,15 @@ typedef struct CurveMap { float range; /* quick multiply value for reading table */ float mintable, maxtable; /* the x-axis range for the table */ + float ext_in[2], ext_out[2]; /* for extrapolated curves, the direction vector */ CurveMapPoint *curve; /* actual curve */ CurveMapPoint *table; /* display and evaluate table */ CurveMapPoint *premultable; /* for RGB curves, premulled table */ } CurveMap; +/* cuma->flag */ +#define CUMA_EXTEND_EXTRAPOLATE 1 + typedef struct CurveMapping { int flag, cur; /* cur; for buttons, to show active curve */ @@ -68,7 +72,7 @@ typedef struct CurveMapping { float bwmul[3], padf; /* black/white point multiply value, for speed */ } CurveMapping; -/* cumap->flag */ +/* cumapping->flag */ #define CUMA_DO_CLIP 1 #define CUMA_PREMULLED 2 |