fn create_editor_with_three_layers() -> Editor {
		let mut editor = Editor::new(Box::new(|e| {
			info!("Got frontend message: {:?}", e);
		}));

		editor.select_primary_color(Color::RED);
		editor.draw_rect(100, 200, 300, 400);
		editor.select_primary_color(Color::BLUE);
		editor.draw_shape(10, 1200, 1300, 400);
		editor.select_primary_color(Color::GREEN);
		editor.draw_ellipse(104, 1200, 1300, 400);

		editor
	}
/// Create an editor instance with three layers
/// 1. A red rectangle
/// 2. A blue shape
/// 3. A green ellipse
Create an editor instance with three layers
1. A red rectangle
2. A blue shape
3. A green ellipse
Create an editor instance with three layers 1 . A red rectangle 2 . A blue shape 3 . A green ellipse
fn create_editor_with_three_layers() -> Editor {
		let mut editor = Editor::new(Box::new(|e| {
			info!("Got frontend message: {:?}", e);
		}));
		editor.select_primary_color(Color::RED);
		editor.draw_rect(100, 200, 300, 400);
		editor.select_primary_color(Color::BLUE);
		editor.draw_shape(10, 1200, 1300, 400);
		editor.select_primary_color(Color::GREEN);
		editor.draw_ellipse(104, 1200, 1300, 400);
		editor
	}
fn create_editor_with_three_layers ( ) -> Editor { let mut editor = Editor :: new ( Box :: new ( | e | { info ! ( " " e ) ; } ) ) ; editor . select_primary_color ( Color :: RED ) ; editor . draw_rect ( 100 , 200 , 300 , 400 ) ; editor . select_primary_color ( Color :: BLUE ) ; editor . draw_shape ( 10 , 1200 , 1300 , 400 ) ; editor . select_primary_color ( Color :: GREEN ) ; editor . draw_ellipse ( 104 , 1200 , 1300 , 400 ) ; editor }
Create an editor instance with three layers
1.
Create an editor instance with three layers 1 .