2
0
Fork 0
mirror of https://github.com/bevyengine/bevy synced 2025-03-04 23:37:18 +00:00
bevy/crates/bevy_color
Zachary Harrold dcb8a13b22
Remove ClampColor ()
# Objective

- Fixes 

## Solution

- Removed `ClampColor`

## Testing

- CI Passed

---

## Migration Guide

Manually clamp the various colour components yourself if this behaviour
is still required.

```rust
fn clamped_srgba(color: Srgba) -> Srgba {
    Srgba {
        red: color.red.clamp(0., 1.),
        green: color.green.clamp(0., 1.),
        blue: color.blue.clamp(0., 1.),
        alpha: color.alpha.clamp(0., 1.),
    }
}
```
2024-05-10 13:15:56 +00:00
..
crates/gen_tests bevy_color: Add Oklch Color Space () 2024-02-28 01:22:55 +00:00
docs bevy_color: Added Color Conversion Mermaid Diagram () 2024-02-27 06:03:34 +00:00
src Remove ClampColor () 2024-05-10 13:15:56 +00:00
Cargo.toml Update glam version requirement from 0.25 to 0.27 () 2024-05-02 18:42:34 +00:00
README.md Add README.md to all crates () 2024-05-02 18:56:00 +00:00

Bevy Color

License Crates.io Downloads Docs Discord