Permalink
Browse files

fix screenshot function

  • Loading branch information...
1 parent 770925b commit 5420052d03c50dc1037d5deffda69f00961721f7 @neophob committed Jun 24, 2012
Showing with 8 additions and 4 deletions.
  1. +8 −4 src/main/java/com/neophob/sematrix/glue/Visual.java
@@ -342,9 +342,9 @@ private PImage getBufferAsImage(int[] buffer) {
*/
public PImage getGeneratorAsImage(int ofs) {
if (ofs==0) {
- return getBufferAsImage(generator1.internalBuffer);
+ return getBufferAsImage(ColorSet.convertToColorSetImage(generator1.internalBuffer, Collector.getInstance().getActiveColorSet()));
}
- return getBufferAsImage(generator2.internalBuffer);
+ return getBufferAsImage(ColorSet.convertToColorSetImage(generator2.internalBuffer, Collector.getInstance().getActiveColorSet()));
}
/**
@@ -354,9 +354,13 @@ public PImage getGeneratorAsImage(int ofs) {
*/
public PImage getEffectAsImage(int ofs) {
if (ofs==0) {
- return getBufferAsImage(effect1.getBuffer(generator1.internalBuffer));
+ return getBufferAsImage(
+ ColorSet.convertToColorSetImage(effect1.getBuffer(generator1.internalBuffer), Collector.getInstance().getActiveColorSet())
+ );
}
- return getBufferAsImage(effect2.getBuffer(generator2.internalBuffer));
+ return getBufferAsImage(
+ ColorSet.convertToColorSetImage(effect2.getBuffer(generator2.internalBuffer), Collector.getInstance().getActiveColorSet())
+ );
}
/**

0 comments on commit 5420052

Please sign in to comment.