Exemplo n.º 1
0
        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;
        }
Exemplo n.º 2
0
        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);
        }