Update Flag Effect (#1154)

* Update Flags Effect (add RU)
This commit is contained in:
Cosmicbase
2021-01-20 18:42:58 +01:00
committed by GitHub
parent be894c821d
commit 4f85ac1c4b
2 changed files with 7 additions and 1 deletions

View File

@@ -177,6 +177,12 @@ def printFlag(country):
hyperion.imageSolidFill(0, 0, int(iW*0.33), iH, 0, 255, 0)
hyperion.imageSolidFill(int(iW*0.33), 0, int(iW*0.33), iH, 255, 0, 0)
hyperion.imageSolidFill(int(iW*0.66), 0, iW, iH, 255, 255, 0)
# ru flag (Russia)
if country == "ru":
hyperion.imageSolidFill(0, 0, iW, int(iH*0.33), 255, 255, 255)
hyperion.imageSolidFill(0, int(iH*0.33), iW, int(iH*0.33), 0, 57, 166)
hyperion.imageSolidFill(0, int(iH*0.66), iW, iH, 213, 43, 30)
#prepare wanted flags
for cf in countries: