$cargorun--examplecolor_palette$catexamples/color_palette.rs1externcratemodern_terminal;23usemodern_terminal::{4components::color_palette::ColorPalette,5core::console::Console,6};78fnmain()->std::io::Result<()>{9letmutwriter=std::io::stdout();10letmutconsole=Console::from_fd(&mutwriter);1112letcomponent=ColorPalette::new();1314console.render(&component)?;1516Ok(())17}