codecraft 0.2.0

A minimalist 3D game engine built on parts of Bevy (ECS, color) with wgpu and winit: OpenPBR materials, clustered lighting, a yakui-drawn UI, audio and gamepad haptics; its binary maps any folder, and the symbols of its Rust files, as a 3D wall of boxes
Documentation
use bevy_color::Color;

#[derive(Clone, Copy, PartialEq, Eq, Debug)]
pub enum Category {
    Scene,
    Light,
    Camera,
    Mesh,
    Material,
    Effects,
    Physics,
    Rig,
    Actors,
    Utilities,
    Network,
    Demo,
}

impl Category {
    pub fn label(self) -> &'static str {
        match self {
            Self::Camera => "Camera",
            Self::Scene => "Scene",
            Self::Light => "Lights",
            Self::Mesh => "Primitives",
            Self::Material => "Materials",
            Self::Effects => "Effects",
            Self::Physics => "Physics",
            Self::Rig => "Rig",
            Self::Actors => "Actors",
            Self::Utilities => "Utilities",
            Self::Network => "Network",
            Self::Demo => "Demo",
        }
    }

    pub fn color(self) -> Color {
        match self {
            Self::Scene => Color::srgb(0.92, 0.92, 0.88),
            Self::Camera => Color::srgb(0.95, 0.78, 0.30),
            Self::Light => Color::srgb(0.95, 0.78, 0.30),
            Self::Mesh => Color::srgb(0.60, 0.62, 0.66),
            Self::Material => Color::srgb(0.95, 0.50, 0.55),
            Self::Effects => Color::srgb(0.35, 0.90, 0.88),
            Self::Physics => Color::srgb(0.95, 0.55, 0.25),
            Self::Rig => Color::srgb(0.45, 0.70, 0.95),
            Self::Actors => Color::srgb(0.75, 0.85, 0.35),
            Self::Utilities => Color::srgb(0.55, 0.85, 0.60),
            Self::Network => Color::srgb(0.70, 0.60, 0.95),
            Self::Demo => Color::srgb(0.95, 0.35, 0.75),
        }
    }
}