Ejemplo n.º 1
0
 public Fadecandy(WinUSBEnumeratedDevice dev)
 {
     BaseDevice = new WinUSBDevice(dev);
     Pixels = new RGBColor[512];
     Initialize();
 }
Ejemplo n.º 2
0
 public void Apply(double t, RGBColor[] data)
 {
     for(int i=0;i<data.Length;i++)
     {
         data[i].R += transValue;
         data[i].G += transValue;
         data[i].B += transValue;
     }
 }
Ejemplo n.º 3
0
 public void Apply(double t, RGBColor[] data)
 {
     double r,g,b;
     for(int i=0;i<data.Length;i++)
     {
         r = Compute(0,t,(double)i/data.Length);
         g = Compute(levelCount,t,(double)i/data.Length);
         b = Compute(levelCount*2,t,(double)i/data.Length);
         data[i] = new RGBColor(r,g,b);   
     }
 }
Ejemplo n.º 4
0
 public void Apply(double t, RGBColor[] data)
 {
     for(int i=0;i<data.Length;i++)
     {
         data[i].R *= scaleValue;
         data[i].G *= scaleValue;
         data[i].B *= scaleValue;
     }
 }
Ejemplo n.º 5
0
 public Fadecandy(WinUSBEnumeratedDevice dev)
 {
     BaseDevice = new WinUSBDevice(dev);
     Pixels     = new RGBColor[512];
     Initialize();
 }