mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-18 16:27:34 +01:00
[python] Fix bug in ParseColor
This commit is contained in:
committed by
LeaNumworks
parent
3d1b3f9a0b
commit
a564efcaa5
@@ -242,9 +242,9 @@ KDColor MicroPython::ColorParser::ParseColor(mp_obj_t input, ColorModes ColorMod
|
||||
|
||||
if(ColorMode == MicroPython::ColorParser::ColorModes::MaxIntensity1){
|
||||
return KDColor::RGB888(
|
||||
mp_obj_get_float(elem[0]),
|
||||
mp_obj_get_float(elem[1]),
|
||||
mp_obj_get_float(elem[2])
|
||||
255 * mp_obj_get_float(elem[0]),
|
||||
255 * mp_obj_get_float(elem[1]),
|
||||
255 * mp_obj_get_float(elem[2])
|
||||
);
|
||||
} else {
|
||||
return KDColor::RGB888(
|
||||
|
||||
Reference in New Issue
Block a user