mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2026-09-19 19:08:05 +08:00
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:
committed by
Keavon Chambers
parent
0156813dec
commit
fe111a6684
@@ -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. }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user