Add camelcase rule, import Error type from JS and rename get_inner_color to inner. (#44)

* Add camelcase rule to .eslintrc.js

* Import Error type from JS, rename crate::wrappers::Color::get_inner_color to crate::wrappers::Color::inner
This commit is contained in:
ProTheory8
2021-03-27 12:43:58 +05:00
committed by Keavon Chambers
parent 0156813dec
commit fe111a6684
6 changed files with 25 additions and 7 deletions

View File

@@ -23,6 +23,7 @@ impl Color {
}
Ok(color)
}
const fn from_unsafe(red: f32, green: f32, blue: f32) -> Color {
Color { red, green, blue, alpha: 1. }
}