Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[add] speed.minimumSpeedMultiplier, for particles speed randomization #34

Merged
merged 1 commit into from
Oct 23, 2016

Conversation

zevlg
Copy link
Contributor

@zevlg zevlg commented Oct 19, 2016

To randomize initial speed for particles, speed.minimumSpeedMultiplier introduced in analogue with scale.minimumScaleMultiplier

Allows to create pretty blood-dripping-alike emitters, consider:

{
    "alpha": {
        "start": 1,
        "end": 0
    },
    "scale": {
        "start": 1,
        "end": 0.5,
        "minimumScaleMultiplier": 0.001
    },
    "color": {
        "start": "#992e41",
        "end": "#57010c"
    },
    "speed": {
        "start": 300,
        "end": 0,
        "minimumSpeedMultiplier": 0.1
    },
    "acceleration": {
        "x": 0,
        "y": 100
    },
    "startRotation": {
        "min": 180,
        "max": 200
    },
    "noRotation": false,
    "rotationSpeed": {
        "min": 0,
        "max": 0
    },
    "lifetime": {
        "min": 0.2,
        "max": 0.5,
    },
    "blendMode": "normal",
    "frequency": 0.0001,
    "emitterLifetime": 0.01,
    "maxParticles": 500,
    "pos": {
        "x": 0,
        "y": 0
    },
    "addAtBack": false,
    "spawnType": "point"
}

Unverified

This user has not yet uploaded their public signing key.
      in analogue with scale.minimumScaleMultiplier
@andrewstart
Copy link
Collaborator

This looks good to me. I've been busy recently (and still am) but sometime I will find the time to make a release and add this into the editor.

@andrewstart andrewstart merged commit 6003103 into pixijs-userland:master Oct 23, 2016
@zevlg
Copy link
Contributor Author

zevlg commented Oct 24, 2016

excellent, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants