mirror of
https://github.com/publiclab/image-sequencer.git
synced 2025-12-11 19:00:00 +01:00
Colorbar added (#316)
* setup Signed-off-by: tech4GT <varun.gupta1798@gmail.com> * overlay done Signed-off-by: tech4GT <varun.gupta1798@gmail.com> * add colorbar fixes #285 Signed-off-by: tech4GT <varun.gupta1798@gmail.com> * add inputs to colorbar Signed-off-by: tech4GT <varun.gupta1798@gmail.com>
This commit is contained in:
committed by
Jeffrey Warren
parent
43e6253095
commit
e15e981d0b
16
src/modules/Colorbar/Module.js
Normal file
16
src/modules/Colorbar/Module.js
Normal file
@@ -0,0 +1,16 @@
|
||||
module.exports = function NdviColormapfunction(options, UI) {
|
||||
|
||||
options.x = options.x || 0;
|
||||
options.y = options.y || 0;
|
||||
options.colormap = options.colormap || "default";
|
||||
options.h = options.h || 10;
|
||||
this.expandSteps([
|
||||
{ 'name': 'gradient', 'options': {} },
|
||||
{ 'name': 'colormap', 'options': { colormap: options.colormap } },
|
||||
{ 'name': 'crop', 'options': { 'y': 0, 'h': options.h } },
|
||||
{ 'name': 'overlay', 'options': { 'x': options.x, 'y': options.y, 'offset': -4 } }
|
||||
]);
|
||||
return {
|
||||
isMeta: true
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user