altizure-plugin-particle-effect
v1.1.1
Published
altizure js sdk plugin for particle effects
Downloads
20
Readme
Particle Effect
The Particle Effect plugin for Altizure Javascript SDK
__
usage
This plugin needs altizure
defined.
in js
This plugin has to be used together with the altizure
module. Make sure altizure
is in your dependencies (or devDependencies) list in package.json
file.
import {Sandbox} from 'altizure'
import ParticleEffectsMarker from 'altizure-plugin-particle-effect'
let options = {
altizureApi:{
key: your key here...
}
}
let sandbox = new Sandbox('page-content', options)
let particles = new ParticleEffectsMarker({
sandbox: sandbox,
position: {lng: 113.94502395441609, lat: 22.537514302934216, alt: 36.23341798691775},
effect: 'fire', // or 'smoke', 'snow', 'clouds'
scale: 1
})
in html
<head>
<script type="text/javascript" src="https://unpkg.com/altizure/release/altizure-sdk.min.js"></script>
<script type="text/javascript" src="https://unpkg.com/altizure-plugin-particle-effect"></script>
</head>
<body>
<div id="page-content" />
<script>
let options = {
altizureApi:{
key: your key here...
}
}
let sandbox = new altizure.Sandbox('page-content', options)
let particles = new altizure.ParticleEffectsMarker({
sandbox: sandbox,
position: {lng: 113.94502395441609, lat: 22.537514302934216, alt: 36.23341798691775},
effect: 'fire', // or 'smoke', 'snow', 'clouds'
scale: 1
})
</script>
</body>