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))); } }
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))); } }