Hello all, I have a gloss method and I'm trying to get a inverted half moon like effect. On the below code I'd like to remove just above bottom half of this ellipse and then draw it. Does anyone know how I might begin to do that?
PS. The gloss is also turning out too white. I've tried messing with the alpha to no avail, does anyone know any tricks to make the gloss more subtle? Thank you
/// <summary>
/// Applies gloss to clock
/// </summary>
/// <param name="e"></param>
private void DrawGloss(PaintEventArgs e)
{
Graphics g = e.Graphics;
float x = ((float)_CenterX / 1.1F) / _PI;
float y = ((float)_CenterY / 1.2F) / _PI;
float width = ((this.ClientSize.Width / 2)) + _hourLength;
float height = ((this.ClientSize.Height / 2)) + _hourLength;
RectangleF glossRect = new RectangleF(
x + (float)(width * 0.10),
y + (float)(height * 0.07),
(float)(width * .8),
(float)(height * 0.4));
LinearGradientBrush gradientBrush =
new LinearGradientBrush(glossRect,
Color.FromArgb((int)50, Color.Transparent),
glossColor,
LinearGradientMode.BackwardDiagonal);
g.FillEllipse(gradientBrush, glossRect);
}