Commits

Trammell Hudson  committed 430df28

swap the palette for PM

  • Participants
  • Parent commits ea01c54

Comments (0)

Files changed (1)

File bargraph/bargraph.c

  */
 static const color24_t
 palette[] = {
+	{ 16, 200, 130 },	// 0
 	{ 16, 200, 130 },	// 1
 	{ 16, 180, 150 },	// 2
 	{ 16, 151, 170 },	// 3
 	{ 200, 28, 35 },	// 10
 	{ 238, 16, 3 },		// 11
 	{ 255, 0, 0 },		// 12
+	{ 255, 0, 0 },		// 13
+	{ 238, 16, 3 },		// 14
+	{ 200, 28, 35 },	// 15
+	{ 186, 40, 77 },	// 16
+	{ 125, 45, 87 },	// 17
+	{ 72, 50, 97 },		// 18
+	{ 30, 78, 120 },	// 19
+	{ 13, 117, 152 },	// 20
+	{ 14, 135, 160 },	// 21
+	{ 16, 151, 170 },	// 22
+	{ 16, 180, 150 },	// 23
 };
 
 
 	int level
 )
 {
+	color24_t color = palette[hour];
+	color24_t color_dim = color;
+	color_dim.red >>= 3;
+	color_dim.green >>= 3;
+	color_dim.blue >>= 3;
+
 	hour %= 12;
 	if (hour == 0)
 		hour = 11;
 	int32_t y = SCREEN_HEIGHT - (min / 5) * 8 - 34;
 
 	// Make the next one fade up as it comes into view
-	color24_t color = palette[hour];
-	color24_t color_dim = color;
-	color_dim.red >>= 3;
-	color_dim.green >>= 3;
-	color_dim.blue >>= 3;
 
 	uint8_t frac = 0;