mirror of
https://github.com/griffi-gh/kubi.git
synced 2024-12-26 21:58:20 -06:00
tst
This commit is contained in:
parent
7cd04247b8
commit
736c0e09d5
|
@ -34,6 +34,8 @@ fn main() {
|
||||||
|
|
||||||
kui.begin();
|
kui.begin();
|
||||||
|
|
||||||
|
let z = instant.elapsed().as_secs_f32().sin().powi(2);
|
||||||
|
|
||||||
kui.add(Container {
|
kui.add(Container {
|
||||||
gap: 5.,
|
gap: 5.,
|
||||||
padding: Sides::all(5.),
|
padding: Sides::all(5.),
|
||||||
|
@ -44,7 +46,7 @@ fn main() {
|
||||||
..Default::default()
|
..Default::default()
|
||||||
}),
|
}),
|
||||||
Box::new(ProgressBar {
|
Box::new(ProgressBar {
|
||||||
value: instant.elapsed().as_secs_f32().sin().powi(2),
|
value: z,
|
||||||
..Default::default()
|
..Default::default()
|
||||||
}),
|
}),
|
||||||
Box::new(Container {
|
Box::new(Container {
|
||||||
|
@ -58,12 +60,16 @@ fn main() {
|
||||||
color: Some(vec4(0.75, 0., 0., 1.))
|
color: Some(vec4(0.75, 0., 0., 1.))
|
||||||
}),
|
}),
|
||||||
Box::new(Rect {
|
Box::new(Rect {
|
||||||
size: (UiSize::Percentage(instant.elapsed().as_secs_f32().cos().powi(2) / 2. + 0.5), UiSize::Pixels(30.)),
|
size: (UiSize::Percentage(z / 2. + 0.5), UiSize::Pixels(30.)),
|
||||||
color: Some(vec4(0., 0.75, 0., 1.))
|
color: Some(vec4(0., 0.75, 0., 1.))
|
||||||
}),
|
}),
|
||||||
],
|
],
|
||||||
..Default::default()
|
..Default::default()
|
||||||
}),
|
}),
|
||||||
|
Box::new(Rect {
|
||||||
|
size: (UiSize::Percentage(z / 2. + 0.5), UiSize::Pixels(30.)),
|
||||||
|
color: Some(vec4(0., 0.75, 0., 1.))
|
||||||
|
}),
|
||||||
Box::new(Container {
|
Box::new(Container {
|
||||||
gap: 5.,
|
gap: 5.,
|
||||||
padding: Sides::all(5.),
|
padding: Sides::all(5.),
|
||||||
|
|
Loading…
Reference in a new issue