diff options
Diffstat (limited to 'rotord/src/nodes_source.h')
| -rw-r--r-- | rotord/src/nodes_source.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/rotord/src/nodes_source.h b/rotord/src/nodes_source.h index 7a699e3..3b30f1b 100644 --- a/rotord/src/nodes_source.h +++ b/rotord/src/nodes_source.h @@ -24,6 +24,7 @@ namespace Rotor { Image *output(const Frame_spec &frame){ if (palette.size()) { int col=((int)inputs[0]->get((Time_spec)frame))%palette.size(); + if (col!=prevcol) cerr<<"colour now "<<palette[col].r<<","<<palette[col].g<<","<<palette[col].b<<endl; //if (col!=prevcol){ //how about when starting a new render? for (int i=0;i<image.w*image.h;i++){ image.RGBdata[i*3]=palette[col].r; |
