tuple_swizzle

Crates.iotuple_swizzle
lib.rstuple_swizzle
version1.0.1
sourcesrc
created_at2020-10-15 03:55:46.237971
updated_at2020-10-15 04:02:09.24558
descriptionAdds swizzle operator to tuples
homepagehttps://github.com/installgentoo/tuple_swizzle
repositoryhttps://github.com/installgentoo/tuple_swizzle
max_upload_size
id299869
size73,777
Alexander Drozdoff (installgentoo)

documentation

README

tuple_swizzle

Crates.io

Docs.rs

Using in your project

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

Commit count: 2

cargo fmt