text: /*
    G35: An Arduino library for GE Color Effects G-35 holiday lights.
    Copyright © 2011 The G35 Authors. Use, modification, and distribution are
    subject to the BSD license as described in the accompanying LICENSE file.
  
    By Mike Tsao <http://github.com/sowbug>.
  
    See README for complete attributions.
  */
  
  #include <Twinkle.h>
  
  Twinkle::Twinkle(G35& g35) : LightProgram(g35) {
    g35_.fill_random_max(0, light_count_, G35::MAX_INTENSITY);
  }
  
  uint32_t Twinkle::Do() {
    g35_.set_color(rand() % light_count_, G35::MAX_INTENSITY,
                   G35::max_color(rand()));
    return bulb_frame_;
  }
  