You are on page 1of 1

Moon Phases by Nilgen Velazco

'Nilgen Velazco 'Y00282080 Public Class lunas Private Sub lunas_Load(sender As System.Object, e As System.EventArgs) Handles MyBase.Load End Sub Private Sub lunas_Paint(ByVal sender As Object, ByVal e As System.Windows.Forms.PaintEventArgs) Handles Me.Paint '1 e.Graphics.FillEllipse(Brushes.DarkGray, 50, 50, 90, 100) 'New Moon_fill e.Graphics.DrawEllipse(Pens.DarkGray, 50, 50, 90, 100) 'New Moon 1 '2 e.Graphics.DrawEllipse(Pens.DarkGray, 200, 50, 90, 100) 'Waxing Crescent 2 e.Graphics.DrawArc(Pens.DarkViolet, 240, 54, 40, 93, 90, -180) 'Waxing C_arc '3 e.Graphics.DrawEllipse(Pens.DarkGray, 350, 50, 90, 100) 'First Quater 3 e.Graphics.DrawLine(Pens.DarkViolet, 395, 50, 395, 150) 'First Quater_line '4 e.Graphics.DrawEllipse(Pens.DarkGray, 500, 50, 90, 100) 'Waxing Gibbious 4 e.Graphics.DrawArc(Pens.DarkViolet, 520, 54, 80, 93, 90, 180) 'Waxing G_arc '5 e.Graphics.FillEllipse(Brushes.DarkViolet, 650, 50, 90, 100) 'Full Moon_fill e.Graphics.DrawEllipse(Pens.DarkViolet, 650, 50, 90, 100) 'Full Moon 5 '6 e.Graphics.DrawEllipse(Pens.DarkViolet, 800, 50, 90, 100) 'Waning Gibbious 6 e.Graphics.DrawArc(Pens.DarkGray, 840, 54, 40, 93, 90, -180) 'Waning G_arc '7 e.Graphics.DrawEllipse(Pens.DarkViolet, 950, 50, 90, 100) 'Last Quater 7 e.Graphics.DrawLine(Pens.DarkGray, 995, 50, 995, 150) 'Last Quater_line '8 e.Graphics.DrawEllipse(Pens.DarkViolet, 1100, 50, 90, 100) 'Waning Crescent 8 e.Graphics.DrawArc(Pens.DarkGray, 1120, 54, 80, 93, 90, 180) 'Waning C_arc End Sub End Class

You might also like