nannou_draw 0.20.0

A simple and expressive API for drawing 2D and 3D graphics, built on Bevy for nannou - the creative-coding framework.
Documentation
1
2
3
4
5
6
7
8
9
use bevy::color::Color;

pub trait ColorExt {
    fn gray(value: f32) -> Color {
        Color::srgb(value, value, value)
    }
}

impl ColorExt for Color {}