Esempio n. 1
0
        public override void Init()
        {
            P = new Punt(new Vector2(100, 400), Color.Green);
            Q = new Punt(new Vector2(300, 200), Color.Blue);

            lijn = new Lijn(Vector2.Zero, Vector2.Zero, Color.Black, 3);
        }
Esempio n. 2
0
        public override void Init()
        {
            rect = new Rectangle(0, Globals.ScreenHeight, 400, 400);
            surface = rect.Width * rect.Height;

            sleepPunt = new Punt(new Vector2(rect.Width, Globals.ScreenHeight), Color.Black);
            rectTex = Assets.CreateRectangle(rect, Color.CornflowerBlue);
        }
Esempio n. 3
0
        public override void Init()
        {
            P = new Punt(new Vector2(100, 400), Color.Red);
            Q = new Punt(new Vector2(600, 100), Color.Purple);
            R = new Punt(new Vector2(440, 320), Color.Yellow);

            lijn = new List<Lijn>();
            lijn.Add(new Lijn(Vector2.Zero, Vector2.Zero, Color.Black, 3));
            lijn.Add(new Lijn(Vector2.Zero, Vector2.Zero, Color.Red, 3));
        }
Esempio n. 4
0
        public override void Init()
        {
            P = new Punt(new Vector2(200, 390), Color.DarkSeaGreen);
            Q = new Punt(new Vector2(600, 390), Color.CornflowerBlue);
            R = new Punt(new Vector2(400, 80), Color.PaleVioletRed);

            S = new Punt(Vector2.Zero, Color.Blue); S.scale = 0.5f;
            T = new Punt(Vector2.Zero, Color.Red); T.scale = 0.5f;
            U = new Punt(Vector2.Zero, Color.Green); U.scale = 0.5f;

            PQ = new Lijn(Vector2.Zero, Vector2.Zero, Color.Black, 5);
            QR = new Lijn(Vector2.Zero, Vector2.Zero, Color.Black, 5);
            RP = new Lijn(Vector2.Zero, Vector2.Zero, Color.Black, 5);

            PS = new Lijn(Vector2.Zero, Vector2.Zero, Color.Black, 2);
            PU = new Lijn(Vector2.Zero, Vector2.Zero, Color.Black, 2);
            QT = new Lijn(Vector2.Zero, Vector2.Zero, Color.Black, 2);

            PQhoogtelijn = new Lijn(Vector2.Zero, Vector2.Zero, Color.Black, 2);
            QRhoogtelijn = new Lijn(Vector2.Zero, Vector2.Zero, Color.Black, 2);
            RPhoogtelijn = new Lijn(Vector2.Zero, Vector2.Zero, Color.Black, 2);

            SetTriangleLines();
        }