rsidwell icon

SetColoring.jwfscript

rsidwell | PRO | 02/08/20 02:26:27 PM UTC | 0 ⭐ | 628 👁️ | Never ⏰ | []
Java |

1.5 KB

|

None

|

0 👍

/

0 👎

/* Set the items on the Coloring tab for the current flame.
   The initial values below are the same as clicking Reset;
   change to the desired settings to customize the script.
 */
 
import org.jwildfire.create.tina.base.Flame;
import org.jwildfire.create.tina.base.BGColorType;
import org.jwildfire.create.tina.script.ScriptRunnerEnvironment;
 
public void run(ScriptRunnerEnvironment pEnv) throws Exception {
  // Get the current flame (create a new one if needed)
  Flame flame = pEnv.getCurrFlame();
  if(flame==null) {
    Flame flame=new Flame();
  }
 
  flame.setBrightness(4.0);
  flame.setLowDensityBrightness(0.24);
  flame.setGamma(4.0);
  flame.setGammaThreshold(0.01);
  flame.setContrast(1.0);
  flame.setBalanceRed(1.0);
  flame.setBalanceGreen(1.0);
  flame.setBalanceBlue(1.0);
  flame.setWhiteLevel(220);
  flame.setVibrancy(1.0);
  flame.setSaturation(1.0);
  flame.setBgColorType(BGColorType.GRADIENT_2X2_C);
  flame.setBgColorULRed(0);
  flame.setBgColorULGreen(0);
  flame.setBgColorULBlue(0);
  flame.setBgColorURRed(0);
  flame.setBgColorURGreen(0);
  flame.setBgColorURBlue(0);
  flame.setBgColorLLRed(0);
  flame.setBgColorLLGreen(0);
  flame.setBgColorLLBlue(0);
  flame.setBgColorLRRed(0);
  flame.setBgColorLRGreen(0);
  flame.setBgColorLRBlue(0);
  flame.setBgColorCCRed(0);
  flame.setBgColorCCGreen(0);
  flame.setBgColorCCBlue(0);
  flame.setBGImageFilename("");
  flame.setForegroundOpacity(1.0);
  flame.setBGTransparency(false);
  
  pEnv.refreshUI();
}

Comments