kornelski / rust-rgb

struct RGB for sharing pixels between crates
https://lib.rs/rgb
MIT License
98 stars 19 forks source link

Add `Zero` etc to types like `RGBA8`, in order to be used like a number array #42

Closed fzyzcjy closed 2 years ago

fzyzcjy commented 2 years ago

I am willing to make a PR

kornelski commented 2 years ago

There's Zeroable implementation already:

https://docs.rs/rgb/0.8.29/rgb/trait.Zeroable.html#impl-Zeroable-7

fzyzcjy commented 2 years ago

You are right. I figured out that later.