Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

fix screenshot function

  • Loading branch information...
commit 5420052d03c50dc1037d5deffda69f00961721f7 1 parent 770925b
@neophob authored
Showing with 8 additions and 4 deletions.
  1. +8 −4 src/main/java/com/neophob/sematrix/glue/Visual.java
View
12 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())
+ );
}
/**
Please sign in to comment.
Something went wrong with that request. Please try again.