Skip to content

Commit

Permalink
Merge pull request #41 from zincware/example_upscale
Browse files Browse the repository at this point in the history
Increase scale of simple spheres example
  • Loading branch information
SamTov authored May 24, 2024
2 parents 3ee8e7c + 143596b commit 261df52
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions examples/simple_spheres.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,17 +31,17 @@
"""
material_1 = vis.Material(colour=np.array([30, 144, 255]) / 255, alpha=0.6)
# Define the first particle.
trajectory = np.random.uniform(-100, 100, (100, 1000, 3))
mesh = vis.Sphere(radius=2.0, resolution=10, material=material_1)
trajectory = np.random.uniform(-100, 100, (100, 10000, 3))
mesh = vis.Sphere(radius=2.0, resolution=3, material=material_1)
particle = vis.Particle(
name="Blue", mesh=mesh, position=trajectory, smoothing=False
)

material_2 = vis.Material(colour=np.array([255, 140, 0]) / 255, alpha=1.0)

# Define the second particle.
trajectory_2 = np.random.uniform(-10, 10, (100, 1000, 3))
mesh_2 = vis.Sphere(radius=1.0, resolution=10, material=material_2)
trajectory_2 = np.random.uniform(-10, 10, (100, 10000, 3))
mesh_2 = vis.Sphere(radius=1.0, resolution=3, material=material_2)
particle_2 = vis.Particle(
name="Orange", mesh=mesh_2, position=trajectory_2, smoothing=False
)
Expand Down

0 comments on commit 261df52

Please sign in to comment.