tylerreisinger / prisma

A powerful color representation, manipulation and conversion library that aims to be easy to use.
MIT License
22 stars 5 forks source link

Add `const` to `fn new` on color models where possible #20

Closed akesson closed 6 months ago

akesson commented 1 year ago

This adds the const keyword to the fn new(...) declaration where possible.

This makes it possible to declare color constants:

const RED: Rgb<u8> = Rgb::new(255, 0, 0);
tylerreisinger commented 6 months ago

I've been off this project for a while given personal health issues. This looks good as do your other PRs. I'll merge them.