mod color;
mod hbb;
mod keypoint;
mod mask;
mod obb;
mod polygon;
mod prob;
mod text;
pub use color::*;
pub use hbb::*;
pub use keypoint::*;
pub use mask::*;
pub use obb::*;
pub use polygon::*;
pub use prob::*;
pub use text::*;
use crate::Color;
pub trait Palette {
fn palette(&self) -> &[Color];
fn color_from_palette(&self, i: usize) -> Color {
let palette = self.palette();
palette[i % palette.len()]
}
}
#[derive(Debug, Clone, Copy, PartialEq, Default)]
pub enum ThicknessDirection {
Inward,
#[default]
Outward,
Centered,
}