Exemplo n.º 1
0
 public virtual void DebugDraw(IDebugDrawer drawer, Vector2 position, float scale)
 {
     for (int index = 0; index < this.get_LedCount(); ++index)
     {
         Vector2 ledCanvasPosition = this.GetLedCanvasPosition(index);
         drawer.DrawSquare(new Vector4(ledCanvasPosition * scale + position, scale / 100f, scale / 100f), new Color(this.GetUnprocessedLedColor(index)));
     }
 }
Exemplo n.º 2
0
 public override void DebugDraw(IDebugDrawer drawer, Vector2 position, float scale)
 {
     for (int i = 0; i < ((RgbDevice)this).get_LedCount(); i++)
     {
         Vector2 ledCanvasPosition = ((RgbDevice)this).GetLedCanvasPosition(i);
         drawer.DrawSquare(new Vector4(ledCanvasPosition * scale + position, scale / 100f, scale / 100f), new Color(((RgbDevice)this).GetUnprocessedLedColor(i)));
     }
 }