public void Draw(G3Canvas canvas, int x, int y, int w, int h) { if (UseAlpha) { canvas.Gradient(x, y, w, h, FromColor, ToColor, FromAlpha, ToAlpha); } else { canvas.Gradient(x, y, w, h, FromColor, ToColor); } }
public void DrawDarker(G3Canvas canvas, int x, int y, int w, int h, byte level) { if (UseAlpha) { canvas.Gradient(x, y, w, h, FromColor.Darker(level), ToColor.Darker(level), FromAlpha, ToAlpha); } else { canvas.Gradient(x, y, w, h, FromColor.Darker(level), ToColor.Darker(level)); } }