Function rerun::demo_util::color_spiral

source ·
pub fn color_spiral(
    num_points: usize,
    radius: f32,
    angular_step: f32,
    angular_offset: f32,
    z_step: f32
) -> (Vec<Vec3>, Vec<[u8; 4]>)
Expand description

Create a spiral of points with colors along the Z axis.

  • num_points: Total number of points.
  • radius: The radius of the spiral.
  • angular_step: The factor applied between each step along the trigonometric circle.
  • angular_offset: Offsets the starting position on the trigonometric circle.
  • z_step: The factor applied between each step along the Z axis.