mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-19 00:37:25 +01:00
[python] Coding style
This commit is contained in:
committed by
LeaNumworks
parent
ba15415847
commit
7c24f2fc28
@@ -211,9 +211,9 @@ KDColor MicroPython::ColorParser::ParseColor(mp_obj_t input, ColorMode ColorMode
|
||||
}
|
||||
}
|
||||
|
||||
if(color[0] == '#'){
|
||||
if (color[0] == '#') {
|
||||
// TODO handle #abc as #aabbcc (see matplotlib spec)
|
||||
if(l != 7){
|
||||
if (l != 7) {
|
||||
mp_raise_ValueError("RGB hex values are 6 bytes long");
|
||||
}
|
||||
uint32_t ColorInt = mp_obj_get_int(mp_parse_num_integer(color+1, strlen(color+1), 16, NULL));
|
||||
|
||||
Reference in New Issue
Block a user