# Objective - Fix #3188 - Allow creating a `PipelinedSpriteBundle` without an image, just a plain color ```rust PipelinedSpriteBundle { sprite: Sprite { color: Color::rgba(0.8, 0.0, 0.0, 0.3), custom_size: Some(Vec2::new(500.0, 500.0)), ..Default::default() }, ..Default::default() } ``` ## Solution - The default impl for `Image` was creating a one pixel image with all values at `1`. I changed it to `255` as picking `1` for it doesn't really make sense, it should be either `0` or `255` - I created a static handle and added the default image to the assets with this handle - I changed the default impl for `PipelinedSpriteBundle` to use this handle |
||
|---|---|---|
| .. | ||
| render | ||
| bundle.rs | ||
| dynamic_texture_atlas_builder.rs | ||
| lib.rs | ||
| rect.rs | ||
| sprite.rs | ||
| texture_atlas_builder.rs | ||
| texture_atlas.rs | ||