public Ball(float X, float Y) { ColorBall = new ColorControler(); this.X = X; this.Y = Y; Radius = 20; current = ColorBall.randomColor(); b = new SolidBrush(current); current = ColorBall.randomColor(); b = new SolidBrush(current); flag = true; }
public Rectangle(int c, int width, int height) { // int x = c.Next(0,624); // Point a = new Point(x, 0); this.A = new Point(c, 12); //dodavanje random broj za pulsiranje [sekoja instanca posebno] Random r = new Random(); RandomBroj = r.Next(40); w = width; zigzag = false; h = height; b = new SolidBrush(Color.Green); cr = new ColorControler(); b = cr.ChangeColor(this, b); }