bevy_contrib_colors

Crates.iobevy_contrib_colors
lib.rsbevy_contrib_colors
version0.2.0
sourcesrc
created_at2020-09-09 10:54:05.092711
updated_at2020-09-21 11:03:55.366276
descriptionColor library for the Bevy game engine.
homepage
repositoryhttps://github.com/guimcaballero/bevy_contrib_colors
max_upload_size
id286615
size92,542
Guim Caballero (guimcaballero)

documentation

README

Bevy color library

Color library for the Bevy game engine.

It currently contains the Tailwind color palette, but feel free to open a PR to add more!

How to use

Add the project as a dependency in Cargo.toml:

bevy_contrib_colors = "0.2.0"

Just import bevy_contrib_colors::Tailwind and use like so:

    use bevy::prelude::Color;
    use bevy_contrib_colors::Tailwind;

    let red: Color = Tailwind::RED400; // #FC8181
    let blue: Color = Tailwind::BLUE600; // #3182CE
Commit count: 17

cargo fmt