Example #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="MystLine" /> class.
 /// </summary>
 /// <param name="pane">The pane.</param>
 /// <param name="start">The postion each point will start at.</param>
 public MystLine(SETPaint.Pane pane, Point start)
 {
     //Set poistion and speed for point one
     pointVelocity1              = new PointVelocity(start, Usefull.randomVelocity(new PointF()));
     pointVelocity1.direction.X *= Usefull.plusMinusOne();
     pointVelocity1.direction.Y *= Usefull.plusMinusOne();
     //Set poistion and speed for point two
     pointVelocity2              = new PointVelocity(start, Usefull.randomVelocity(new PointF()));
     pointVelocity2.direction.X *= Usefull.plusMinusOne();
     pointVelocity2.direction.Y *= Usefull.plusMinusOne();
     //Create random colour MIGHT BE BLACK
     Color = Color.FromArgb(255, rnd.Next(255), rnd.Next(255), rnd.Next(255));
 }
Example #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="MystLine" /> class.
 /// </summary>
 /// <param name="pane">The pane.</param>
 /// <param name="start">The postion each point will start at.</param>
 public MystLine(SETPaint.Pane pane, Point start)
 {
     //Set poistion and speed for point one
     pointVelocity1 = new PointVelocity(start, Usefull.randomVelocity(new PointF()));
     pointVelocity1.direction.X *= Usefull.plusMinusOne();
     pointVelocity1.direction.Y *= Usefull.plusMinusOne();
     //Set poistion and speed for point two
     pointVelocity2 = new PointVelocity(start, Usefull.randomVelocity(new PointF()));
     pointVelocity2.direction.X *= Usefull.plusMinusOne();
     pointVelocity2.direction.Y *= Usefull.plusMinusOne();
     //Create random colour MIGHT BE BLACK
     Color = Color.FromArgb(255, rnd.Next(255), rnd.Next(255), rnd.Next(255));
 }