Package org.jwildfire.create.tina.variation

Examples of org.jwildfire.create.tina.variation.InternalSliceRangeIndicatorWFFunc


      }
      pFlame.getFirstLayer().setPalette(gradient);
    }

    protected void addSliceVariation(Flame pFlame, boolean pWithRandomFill) {
      InternalSliceRangeIndicatorWFFunc sliceVar = new InternalSliceRangeIndicatorWFFunc();
      if (pFlame.getFirstLayer().getFinalXForms().size() == 0) {
        XForm xform = new XForm();
        xform.addVariation(1.0, new Linear3DFunc());
        xform.addVariation(1.0, sliceVar);
        pFlame.getFirstLayer().getFinalXForms().add(xform);
      }
      else {
        pFlame.getFirstLayer().getFinalXForms().get(pFlame.getFirstLayer().getFinalXForms().size() - 1).addVariation(1.0, sliceVar);
      }
      sliceVar.setParameter("thickness", (zmaxREd.getDoubleValue() - zminREd.getDoubleValue()) / sliceCountREd.getDoubleValue());
      sliceVar.setParameter("position_1", zminREd.getDoubleValue());
      sliceVar.setParameter("dc_red_1", 2450);
      sliceVar.setParameter("dc_green_1", 250);
      sliceVar.setParameter("dc_blue_1", 42);
      sliceVar.setParameter("position_2", zmaxREd.getDoubleValue());
      sliceVar.setParameter("dc_red_2", 60);
      sliceVar.setParameter("dc_green_2", 2450);
      sliceVar.setParameter("dc_blue_2", 2450);
      sliceVar.setParameter("random_fill", pWithRandomFill ? 1 : 0);
    }
View Full Code Here

TOP

Related Classes of org.jwildfire.create.tina.variation.InternalSliceRangeIndicatorWFFunc

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.