Skip to content

Commit

Permalink
Added rendering logic.
Browse files Browse the repository at this point in the history
  • Loading branch information
guylamar2006 authored Dec 2, 2024
1 parent 07f189b commit 599faed
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion neothesia-core/src/render/waterfall/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -81,10 +81,13 @@ impl WaterfallRenderer {

self.notes_pipeline.instances().push(NoteInstance {
position: [key.x(), note.start.as_secs_f32()],
size: [key.width() - 1.0, h - 0.01], // h - 0.01 to make a little gap bettwen successive notes
size: [key.width() - 1.0, h - 0.01], // h - 0.01 to make a little gap between successive notes
color: color.into_linear_rgb(),
radius: key.width() * 0.2,
});
// Add note label
let label_position = [key.x(), note.start.as_secs_f32()];
self.notes_pipeline.add_label(&note.to_string(), label_position);
} else {
longer_than_range = true;
}
Expand Down

0 comments on commit 599faed

Please sign in to comment.