sb3_decoder/structs/
costume.rs

1//! The costume module contains the [`Costume`] struct and related functionality.
2
3/// The [`Costume`] struct represents a costume / backdrop in a Scratch 3.0 project.
4#[cfg(feature = "costume_png")]
5#[derive(Debug, Clone)]
6pub struct Costume(
7    /// The image data of the costume.
8    pub image::DynamicImage,
9);
10
11#[cfg(feature = "costume_svg")]
12#[derive(Debug, Clone)]
13pub struct Costume(
14    /// The SVG tree of the costume.
15    pub usvg::Tree,
16);