mirror of
https://github.com/eliasstepanik/imgui-rs.git
synced 2026-01-11 05:28:35 +00:00
cargo fmt custom_textures.rs example
This commit is contained in:
parent
e83f71bf82
commit
0521a8fa9f
@ -167,10 +167,10 @@ impl CustomTexturesApp {
|
||||
// Tint brighter for visiblity of corners
|
||||
.col([2.0, 0.5, 0.5, 1.0])
|
||||
// Rounding on each corner can be changed separately
|
||||
.round_top_left((ui.frame_count()+0) / 60 % 4 == 0)
|
||||
.round_top_right((ui.frame_count()+1) / 60 % 4 == 1)
|
||||
.round_bot_right((ui.frame_count()+3) / 60 % 4 == 2)
|
||||
.round_bot_left((ui.frame_count()+2) / 60 % 4 == 3)
|
||||
.round_top_left((ui.frame_count() + 0) / 60 % 4 == 0)
|
||||
.round_top_right((ui.frame_count() + 1) / 60 % 4 == 1)
|
||||
.round_bot_right((ui.frame_count() + 3) / 60 % 4 == 2)
|
||||
.round_bot_left((ui.frame_count() + 2) / 60 % 4 == 3)
|
||||
.build();
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user