[python] ColorParser: add a TODO

This commit is contained in:
Émilie Feral
2020-04-29 10:11:04 +02:00
committed by LeaNumworks
parent 8f5fa50f22
commit 1b0b9e48f5

View File

@@ -212,6 +212,7 @@ KDColor MicroPython::ColorParser::ParseColor(mp_obj_t input, ColorMode ColorMode
}
if(color[0] == '#'){
// TODO handle #abc as #aabbcc (see matplotlib spec)
if(l != 7){
mp_raise_ValueError("RGB hex values are 6 bytes long");
}