public override void Draw(Graphics graphics, Point location) { base.Draw(graphics, location); graphics.DrawPolygon(Pens.Yellow, BaseStarElement.Calculate5StarPointsCenter(location, _sideLength, _sideLength / 2)); }
public override void Draw() { Graphics.FillPolygon(Brushes.Yellow, BaseStarElement.Calculate5StarPoints(Rect.Location, Rect.Width, Rect.Width / 2)); }
public override void Visit(StarElement star) { _graphics.FillPolygon(_brush, BaseStarElement.Calculate5StarPoints(star.Rect.Location, star.Rect.Width, star.Rect.Width / 2)); //_graphics.FillEllipse(_brush, s); }
public override void Update() { Brush brush = new SolidBrush(_subject.ElementColor); _graphics.FillPolygon(brush, BaseStarElement.Calculate5StarPoints(_rect.Location, _rect.Width, _rect.Width / 2)); }