Skip to content

Commit

Permalink
self-review
Browse files Browse the repository at this point in the history
  • Loading branch information
teh-cmc committed May 4, 2023
1 parent ce676d1 commit c2e39a2
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
8 changes: 4 additions & 4 deletions examples/rust/clock/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ license.workspace = true
publish = false

[dependencies]
rerun = { workspace = true, features = ["web_viewer"] }
rerun = { path = "../../../crates/rerun", features = ["web_viewer"] }

anyhow.workspace = true
clap = { workspace = true, features = ["derive"] }
glam.workspace = true
anyhow = "1.0"
clap = { version = "4.0", features = ["derive"] }
glam = "0.22"
6 changes: 3 additions & 3 deletions examples/rust/clock/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ fn run(rec_stream: &RecordingStream, args: &Args) -> anyhow::Result<()> {
const LENGTH_M: f32 = 10.0;
const LENGTH_H: f32 = 4.0;
const WIDTH_S: f32 = 0.25;
const WIDTH_M: f32 = 0.5;
const WIDTH_H: f32 = 0.7;
const WIDTH_M: f32 = 0.4;
const WIDTH_H: f32 = 0.6;

let view_coords = ViewCoordinates::from_up_and_handedness(
SignedAxis3::POSITIVE_Y,
Expand Down Expand Up @@ -58,7 +58,7 @@ fn run(rec_stream: &RecordingStream, args: &Args) -> anyhow::Result<()> {

fn color(angle: f32, blue: u8) -> ColorRGBA {
let c = (angle * 255.0) as u8;
ColorRGBA::from_unmultiplied_rgba(255 - c, c, blue, 128)
ColorRGBA::from_unmultiplied_rgba(255 - c, c, blue, u8::max(128, blue))
}

fn log_hand(
Expand Down

0 comments on commit c2e39a2

Please sign in to comment.