nuit_core/compose/shape/primitive/
ellipse.rs

1use crate::{Shape, ShapeNode};
2
3/// An elliptic shape.
4#[derive(Debug, Clone, PartialEq, Eq)]
5pub struct Ellipse;
6
7impl Ellipse {
8    pub fn new() -> Self {
9        Self
10    }
11}
12
13impl Shape for Ellipse {
14    fn render(&self) -> ShapeNode {
15        ShapeNode::Ellipse {}
16    }
17}