public SimpleInfluencer () { value = new ScaledNumericValue(); value.setHigh(1); }
public SimpleInfluencer () { value = new ScaledNumericValue(); value.setHigh(1); }
public Single () { colorValue = new GradientColorValue(); alphaValue = new ScaledNumericValue(); alphaValue.setHigh(1); }
public Single () { colorValue = new GradientColorValue(); alphaValue = new ScaledNumericValue(); alphaValue.setHigh(1); }
emitter.getEmission().setHigh(250); emitter.getLife().setHigh(500, 1000); emitter.getLife().setTimeline(new float[] {0, 0.66f, 1}); emitter.getLife().setScaling(new float[] {1, 1, 0.3f}); scaleInfluencer.value.setHigh(1); colorInfluencer.colorValue.setColors(new float[] {0.12156863f, 0.047058824f, 1, 0,0,0}); colorInfluencer.colorValue.setTimeline(new float[] {0, 1}); colorInfluencer.alphaValue.setHigh(1); colorInfluencer.alphaValue.setTimeline(new float[] {0, 0.5f, 0.8f, 1}); colorInfluencer.alphaValue.setScaling(new float[] {0, 0.15f, 0.5f, 0}); velocityValue.phiValue.setHigh(-35, 35); velocityValue.phiValue.setActive(true); velocityValue.phiValue.setTimeline(new float[] {0, 0.5f, 1}); velocityValue.phiValue.setScaling(new float[] {1, 0, 0}); velocityValue.thetaValue.setHigh(0, 360); velocityValue.strengthValue.setHigh(5, 10);
emitter.getEmission().setHigh(250); emitter.getLife().setHigh(500, 1000); emitter.getLife().setTimeline(new float[] {0, 0.66f, 1}); emitter.getLife().setScaling(new float[] {1, 1, 0.3f}); scaleInfluencer.value.setHigh(1); colorInfluencer.colorValue.setColors(new float[] {0.12156863f, 0.047058824f, 1, 0,0,0}); colorInfluencer.colorValue.setTimeline(new float[] {0, 1}); colorInfluencer.alphaValue.setHigh(1); colorInfluencer.alphaValue.setTimeline(new float[] {0, 0.5f, 0.8f, 1}); colorInfluencer.alphaValue.setScaling(new float[] {0, 0.15f, 0.5f, 0}); velocityValue.phiValue.setHigh(-35, 35); velocityValue.phiValue.setActive(true); velocityValue.phiValue.setTimeline(new float[] {0, 0.5f, 1}); velocityValue.phiValue.setScaling(new float[] {1, 0, 0}); velocityValue.thetaValue.setHigh(0, 360); velocityValue.strengthValue.setHigh(5, 10);
emitter.getEmission().setHigh(250); emitter.getLife().setHigh(500, 1000); emitter.getLife().setTimeline(new float[] {0, 0.66f, 1}); emitter.getLife().setScaling(new float[] {1, 1, 0.3f}); colorInfluencer.colorValue.setColors(new float[] {1, 0.12156863f, 0.047058824f, 0,0,0}); colorInfluencer.colorValue.setTimeline(new float[] {0, 1}); colorInfluencer.alphaValue.setHigh(1); colorInfluencer.alphaValue.setTimeline(new float[] {0, 0.5f, 0.8f, 1}); colorInfluencer.alphaValue.setScaling(new float[] {0, 0.15f, 0.5f, 0}); velocityValue.phiValue.setHigh(-35, 35); velocityValue.phiValue.setActive(true); velocityValue.phiValue.setTimeline(new float[] {0, 0.5f, 1}); velocityValue.phiValue.setScaling(new float[] {1, 0, 0}); velocityValue.thetaValue.setHigh(0, 360); velocityValue.strengthValue.setHigh(5, 10); velocityInfluencer.velocities.add(velocityValue);
emitter.getEmission().setHigh(250); emitter.getLife().setHigh(500, 1000); emitter.getLife().setTimeline(new float[] {0, 0.66f, 1}); emitter.getLife().setScaling(new float[] {1, 1, 0.3f}); colorInfluencer.colorValue.setColors(new float[] {1, 0.12156863f, 0.047058824f, 0,0,0}); colorInfluencer.colorValue.setTimeline(new float[] {0, 1}); colorInfluencer.alphaValue.setHigh(1); colorInfluencer.alphaValue.setTimeline(new float[] {0, 0.5f, 0.8f, 1}); colorInfluencer.alphaValue.setScaling(new float[] {0, 0.15f, 0.5f, 0}); velocityValue.phiValue.setHigh(-35, 35); velocityValue.phiValue.setActive(true); velocityValue.phiValue.setTimeline(new float[] {0, 0.5f, 1}); velocityValue.phiValue.setScaling(new float[] {1, 0, 0}); velocityValue.thetaValue.setHigh(0, 360); velocityValue.strengthValue.setHigh(5, 10); velocityInfluencer.velocities.add(velocityValue);
emitter.getEmission().setHigh(90); emitter.getLife().setHigh(3000); emitter.setMaxParticleCount(100); scaleInfluencer.value.setHigh(1); scaleInfluencer.value.setLow(0); scaleInfluencer.value.setTimeline(new float[]{0,1}); velocityValue.strengthValue.setHigh(5, 10); velocityValue.strengthValue.setActive(true); velocityInfluencer.velocities.add(velocityValue);
emitter.getEmission().setHigh(90); emitter.getLife().setHigh(3000); emitter.setMaxParticleCount(100); scaleInfluencer.value.setHigh(1); scaleInfluencer.value.setLow(0); scaleInfluencer.value.setTimeline(new float[]{0,1}); velocityValue.strengthValue.setHigh(5, 10); velocityValue.strengthValue.setActive(true); velocityInfluencer.velocities.add(velocityValue);
emitter.getEmission().setHigh(2900); emitter.getLife().setHigh(1000); emitter.setMaxParticleCount(3000); scaleInfluencer.value.setScaling(new float[]{1, 0}); scaleInfluencer.value.setLow(0); scaleInfluencer.value.setHigh(1); colorInfluencer.colorValue.setColors(new float[] {colors[0], colors[1], colors[2], 0,0,0}); colorInfluencer.colorValue.setTimeline(new float[] {0, 1}); colorInfluencer.alphaValue.setHigh(1); colorInfluencer.alphaValue.setTimeline(new float[] {0, 0.5f, 0.8f, 1}); colorInfluencer.alphaValue.setScaling(new float[] {0, 0.15f, 0.5f, 0}); modifier.strengthValue.setTimeline(new float[]{0,1}); modifier.strengthValue.setScaling(new float[]{0,1}); modifier.strengthValue.setHigh(80); modifier.strengthValue.setLow(1, 5); dynamicsInfluencer.velocities.add(modifier);
emitter.getEmission().setHigh(90); emitter.getLife().setHigh(1000); emitter.getLife().setTimeline(new float[] {0, 0.66f, 1}); emitter.getLife().setScaling(new float[] {1, 1, 0.3f}); scaleInfluencer.value.setHigh(1f); colorInfluencer.colorValue.setColors(new float[] {1, 0.12156863f, 0.047058824f, 0,0,0}); colorInfluencer.colorValue.setTimeline(new float[] {0, 1}); colorInfluencer.alphaValue.setHigh(1); colorInfluencer.alphaValue.setTimeline(new float[] {0, 0.5f, 0.8f, 1}); colorInfluencer.alphaValue.setScaling(new float[] {0, 0.15f, 0.5f, 0});
emitter.getEmission().setHigh(90); emitter.getLife().setHigh(1000); emitter.getLife().setTimeline(new float[] {0, 0.66f, 1}); emitter.getLife().setScaling(new float[] {1, 1, 0.3f}); scaleInfluencer.value.setHigh(1f); colorInfluencer.colorValue.setColors(new float[] {1, 0.12156863f, 0.047058824f, 0,0,0}); colorInfluencer.colorValue.setTimeline(new float[] {0, 1}); colorInfluencer.alphaValue.setHigh(1); colorInfluencer.alphaValue.setTimeline(new float[] {0, 0.5f, 0.8f, 1}); colorInfluencer.alphaValue.setScaling(new float[] {0, 0.15f, 0.5f, 0});
public Single () { colorValue = new GradientColorValue(); alphaValue = new ScaledNumericValue(); alphaValue.setHigh(1); }
public void rotateBy(float amountInDegrees) { Array<ParticleEmitter> emitters = particleEffect.getEmitters(); for (int i = 0; i < emitters.size; i++) { ScaledNumericValue val = emitters.get(i).getAngle(); float amplitude = (val.getHighMax() - val.getHighMin()) / 2f; float h1 = amountInDegrees + amplitude; float h2 = amountInDegrees - amplitude; val.setHigh(h1, h2); val.setLow(amountInDegrees); } } }