Make sandbox helper take a title as well
This commit is contained in:
parent
3f81c524cc
commit
bb71e8481e
21 changed files with 64 additions and 58 deletions
|
|
@ -8,10 +8,13 @@ use rand::Rng;
|
|||
use std::fmt::Debug;
|
||||
|
||||
fn main() -> iced::Result {
|
||||
iced::sandbox(SierpinskiEmulator::update, SierpinskiEmulator::view)
|
||||
.title("Sierpinski Triangle - Iced")
|
||||
.antialiased()
|
||||
.run()
|
||||
iced::sandbox(
|
||||
"Sierpinski Triangle - Iced",
|
||||
SierpinskiEmulator::update,
|
||||
SierpinskiEmulator::view,
|
||||
)
|
||||
.antialiased()
|
||||
.run()
|
||||
}
|
||||
|
||||
#[derive(Debug, Default)]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue