diff options
| author | Comment <tim@gray.(none)> | 2013-11-28 23:54:24 +0000 |
|---|---|---|
| committer | Comment <tim@gray.(none)> | 2013-11-28 23:54:24 +0000 |
| commit | 7962d0493767a30895898cf40585ca042bbf08c0 (patch) | |
| tree | a2270e77050e7c08bba48cab6cf90c69585dad1c /rotord/src/nodes_source.h | |
| parent | 09a65304f32ca7b86e7710d689600f5c7afce578 (diff) | |
fixed signal colour
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; |
