oursin.particles
Particles
Functions
Clear all particle systems |
Classes
Particle system |
- class ParticleSystem(n, material='circle', positions=None, sizes=None, colors=None)[source]
Bases:
object
Particle system
Minimize the number of particle systems you create
You cannot edit the number of particles in a system after creation
Create separate particle systems when you need to use different materials
- set_material(material)[source]
Set the material of a particle system
Options are - ‘gaussian’ - ‘circle’ (default) - ‘circle-lit’ - ‘square’ - ‘square-lit’ - ‘diamond’ - ‘diamond-lit’
Parameters
- materialstring
new material for all particles
Examples
>>>psystem1.set_material(‘circle’)
- set_positions(positions)[source]
Set the positions of particles relative to the reference coordinate
Parameters
- positionlist of three floats
(ap, ml, dv) coordinates in um
Examples
>>>psystem1.set_positions([5200,5700,330]) # move all particles to Bregma in CCF