| Crates.io | tuple_swizzle |
| lib.rs | tuple_swizzle |
| version | 1.0.1 |
| created_at | 2020-10-15 03:55:46.237971+00 |
| updated_at | 2020-10-15 04:02:09.24558+00 |
| description | Adds swizzle operator to tuples |
| homepage | https://github.com/installgentoo/tuple_swizzle |
| repository | https://github.com/installgentoo/tuple_swizzle |
| max_upload_size | |
| id | 299869 |
| size | 73,777 |
tuple_swizzle = "1.0.1"
tuple_swizzle adds swizzle operations( such as (1, 255, 255, 255).bgra(), (1, 2.0_f32).yx(), or
(1, 2, 3, 4).wzyx() ), familiar to anyone who used GLSL, to tuples of up to 4 elements.
Just import the traits via use tuple_swizzle::swizzle::*
Works for all types that implement Copy