Search in sources :

Example 91 with Layer

use of org.jwildfire.create.tina.base.Layer in project JWildfire by thargor6.

the class CannabisCurveDOFBlurShape method prepare.

@Override
public void prepare(FlameTransformationContext pFlameTransformationContext, AbstractRandomGenerator pRandGen, double pCamDOF_10) {
    super.prepare(pFlameTransformationContext, pRandGen, pCamDOF_10);
    s = new XYZPoint();
    d = new XYZPoint();
    xform = new XForm();
    fnc = new CannabisCurveWFFunc();
    fnc.setParameter(CannabisCurveWFFunc.PARAM_FILLED, 1.0);
    fnc.init(pFlameTransformationContext, new Layer(), xform, 1.0);
}
Also used : XForm(org.jwildfire.create.tina.base.XForm) XYZPoint(org.jwildfire.create.tina.base.XYZPoint) CannabisCurveWFFunc(org.jwildfire.create.tina.variation.CannabisCurveWFFunc) Layer(org.jwildfire.create.tina.base.Layer)

Example 92 with Layer

use of org.jwildfire.create.tina.base.Layer in project JWildfire by thargor6.

the class CloverleafDOFBlurShape method prepare.

@Override
public void prepare(FlameTransformationContext pFlameTransformationContext, AbstractRandomGenerator pRandGen, double pCamDOF_10) {
    super.prepare(pFlameTransformationContext, pRandGen, pCamDOF_10);
    s = new XYZPoint();
    d = new XYZPoint();
    xform = new XForm();
    fnc = new CloverLeafWFFunc();
    fnc.setParameter(CloverLeafWFFunc.PARAM_FILLED, 1.0);
    fnc.init(pFlameTransformationContext, new Layer(), xform, 1.0);
}
Also used : XForm(org.jwildfire.create.tina.base.XForm) XYZPoint(org.jwildfire.create.tina.base.XYZPoint) CloverLeafWFFunc(org.jwildfire.create.tina.variation.CloverLeafWFFunc) Layer(org.jwildfire.create.tina.base.Layer)

Example 93 with Layer

use of org.jwildfire.create.tina.base.Layer in project JWildfire by thargor6.

the class FlowerDOFBlurShape method prepare.

@Override
public void prepare(FlameTransformationContext pFlameTransformationContext, AbstractRandomGenerator pRandGen, double pCamDOF_10) {
    super.prepare(pFlameTransformationContext, pRandGen, pCamDOF_10);
    s = new XYZPoint();
    d = new XYZPoint();
    xform = new XForm();
    fnc = new FlowerFunc();
    for (String paramName : getParamNames()) {
        fnc.setParameter(paramName, params.get(paramName));
    }
    fnc.init(pFlameTransformationContext, new Layer(), xform, 1.0);
}
Also used : FlowerFunc(org.jwildfire.create.tina.variation.FlowerFunc) XForm(org.jwildfire.create.tina.base.XForm) XYZPoint(org.jwildfire.create.tina.base.XYZPoint) Layer(org.jwildfire.create.tina.base.Layer)

Example 94 with Layer

use of org.jwildfire.create.tina.base.Layer in project JWildfire by thargor6.

the class NBlurDOFBlurShape method prepare.

@Override
public void prepare(FlameTransformationContext pFlameTransformationContext, AbstractRandomGenerator pRandGen, double pCamDOF_10) {
    super.prepare(pFlameTransformationContext, pRandGen, pCamDOF_10);
    s = new XYZPoint();
    d = new XYZPoint();
    xform = new XForm();
    fnc = new NBlurFunc();
    for (String paramName : getParamNames()) {
        fnc.setParameter(paramName, params.get(paramName));
    }
    fnc.init(pFlameTransformationContext, new Layer(), xform, 1.0);
}
Also used : XForm(org.jwildfire.create.tina.base.XForm) XYZPoint(org.jwildfire.create.tina.base.XYZPoint) Layer(org.jwildfire.create.tina.base.Layer) NBlurFunc(org.jwildfire.create.tina.variation.NBlurFunc)

Example 95 with Layer

use of org.jwildfire.create.tina.base.Layer in project JWildfire by thargor6.

the class TinaController method paletteInvertBtn_clicked.

public void paletteInvertBtn_clicked() {
    Layer layer = getCurrLayer();
    if (layer != null) {
        saveUndoPoint();
        layer.getPalette().negativeColors();
        refreshPaletteUI(layer.getPalette());
        transformationChanged(true);
    }
}
Also used : Layer(org.jwildfire.create.tina.base.Layer)

Aggregations

Layer (org.jwildfire.create.tina.base.Layer)105 XForm (org.jwildfire.create.tina.base.XForm)73 Flame (org.jwildfire.create.tina.base.Flame)63 VariationFunc (org.jwildfire.create.tina.variation.VariationFunc)31 XYZPoint (org.jwildfire.create.tina.base.XYZPoint)16 RenderedFlame (org.jwildfire.create.tina.render.RenderedFlame)13 RGBPalette (org.jwildfire.create.tina.palette.RGBPalette)9 ArrayList (java.util.ArrayList)8 FlameWriter (org.jwildfire.create.tina.io.FlameWriter)5 RandomGradientMutation (org.jwildfire.create.tina.mutagen.RandomGradientMutation)4 Linear3DFunc (org.jwildfire.create.tina.variation.Linear3DFunc)4 DefaultTableModel (javax.swing.table.DefaultTableModel)2 Test (org.junit.Test)2 QualityProfile (org.jwildfire.base.QualityProfile)2 ResolutionProfile (org.jwildfire.base.ResolutionProfile)2 XMLAttributes (org.jwildfire.base.Tools.XMLAttributes)2 HeadlessBatchRendererController (org.jwildfire.create.tina.batch.HeadlessBatchRendererController)2 Job (org.jwildfire.create.tina.batch.Job)2 JobRenderThread (org.jwildfire.create.tina.batch.JobRenderThread)2 JobRenderThreadController (org.jwildfire.create.tina.batch.JobRenderThreadController)2