Package org.jwildfire.create.tina.randomflame

Examples of org.jwildfire.create.tina.randomflame.AllRandomFlameGenerator


public class RandomFlameMutation implements Mutation {

  @Override
  public void execute(Layer pLayer) {
    RandomFlameGenerator randGen = new AllRandomFlameGenerator();
    int palettePoints = 3 + (int) (Math.random() * 68.0);
    boolean fadePaletteColors = Math.random() > 0.33;
    int IMG_WIDTH = 80;
    int IMG_HEIGHT = 60;
    RandomFlameGeneratorSampler sampler = new RandomFlameGeneratorSampler(IMG_WIDTH, IMG_HEIGHT, Prefs.getPrefs(), randGen, RandomSymmetryGeneratorList.SPARSE, RandomGradientGeneratorList.DEFAULT, palettePoints, fadePaletteColors, RandomBatchQuality.NORMAL);
View Full Code Here


  }

  public void genRandomFlame(RandomBatchQuality pQuality) {
    final int IMG_WIDTH = 80;
    final int IMG_HEIGHT = 60;
    RandomFlameGenerator randGen = new AllRandomFlameGenerator();
    int palettePoints = 3 + (int) (Math.random() * 21.0);
    boolean fadePaletteColors = Math.random() > 0.09;
    RandomFlameGeneratorSampler sampler = new RandomFlameGeneratorSampler(IMG_WIDTH, IMG_HEIGHT, prefs, randGen, RandomSymmetryGeneratorList.SPARSE, RandomGradientGeneratorList.DEFAULT, palettePoints, fadePaletteColors, pQuality);
    currFlame = sampler.createSample().getFlame();
  }
View Full Code Here

  @Override
  public Flame getCurrFlame(boolean autoGenerateIfEmpty) {
    if (_currFlame == null) {
      final int IMG_WIDTH = 80;
      final int IMG_HEIGHT = 60;
      RandomFlameGenerator randGen = new AllRandomFlameGenerator();
      int palettePoints = 3 + (int) (Math.random() * 21.0);
      boolean fadePaletteColors = Math.random() > 0.09;
      RandomFlameGeneratorSampler sampler = new RandomFlameGeneratorSampler(IMG_WIDTH, IMG_HEIGHT, prefs, randGen, RandomSymmetryGeneratorList.SPARSE, RandomGradientGeneratorList.DEFAULT, palettePoints, fadePaletteColors, RandomBatchQuality.LOW);
      Flame flame = sampler.createSample().getFlame();
      setCurrFlame(flame);
View Full Code Here

TOP

Related Classes of org.jwildfire.create.tina.randomflame.AllRandomFlameGenerator

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.