Mercurial > core / rust/ui/alik/dash/src/main.rs
changeset 698: |
96958d3eb5b0 |
parent: |
702498601326
|
author: |
Richard Westhaver <ellis@rwest.io> |
date: |
Fri, 04 Oct 2024 22:04:59 -0400 |
permissions: |
-rw-r--r-- |
description: |
fixes |
1 use rerun::{demo_util::grid, external::glam}; 3 fn main() -> Result<(), Box<dyn std::error::Error>> { 4 let rec = rerun::RecordingStreamBuilder::new("alik_dash").spawn()?; 6 let points = grid(glam::Vec3::splat(-10.0), glam::Vec3::splat(10.0), 10); 7 let colors = grid(glam::Vec3::ZERO, glam::Vec3::splat(255.0), 10) 8 .map(|v| rerun::Color::from_rgb(v.x as u8, v.y as u8, v.z as u8)); 12 &rerun::Points3D::new(points)