// Copyright 2020 the Kurbo Authors // SPDX-License-Identifier: Apache-2.0 OR MIT //! Example of ellipse #[cfg(feature = "std")] fn main() { use kurbo::{Ellipse, Shape}; use std::f64::consts::PI; let ellipse = Ellipse::new((400.0, 400.0), (200.0, 100.0), 0.25 * PI); println!(""); println!(""); println!(""); println!(""); let path = ellipse.to_path(1e-3).to_svg(); println!(" ", path); let path = ellipse.to_path(1.0).to_svg(); println!(" ", path); println!(""); println!(""); println!(""); } #[cfg(not(feature = "std"))] fn main() { println!("This example requires the standard library"); }