Christmas Ornament – Using Arduino – Sparkles

Want to add some sparkle to the ornament?  Use this:

 random_pixel = random(0,41);
 color = matrix.getPixelColor(random_pixel); 
 matrix.setPixelColor(random_pixel, 255, 255, 255);
 matrix.show();
 delay(5);
 matrix.setPixelColor(random_pixel, color);
 matrix.show();