getSeasonColors static method
- int month
Return a list of colors for the specified month based on season
Implementation
static Iterable<NamedColor> getSeasonColors(int month) {
month = month.clampRotate(1, 12);
switch (month) {
case 12: // Dezembro - Verão
case 1: // Janeiro - Verão
case 2: // Fevereiro - Verão
return [NamedColors.yellow, NamedColors.orange, NamedColors.redColor];
case 3: // Março - Outono
case 4: // Abril - Outono
case 5: // Maio - Outono
return [NamedColors.brownSugar, NamedColors.deepOrange, NamedColors.gold];
case 6: // Junho - Inverno
case 7: // Julho - Inverno
case 8: // Agosto - Inverno
return [NamedColors.blueGreen, NamedColors.gray, NamedColors.black];
case 9: // Setembro - Primavera
case 10: // Outubro - Primavera
case 11: // Novembro - Primavera
return [NamedColors.greenColor, NamedColors.pink, NamedColors.blueCrayola];
default:
return [];
}
}