Exemple #1
0
        public Bishop(bool color)
        {
            secondColor = Color.Brown;
            mainColor   = color ? Color.Wheat : Color.DarkGray;

            baseF = new Box(0.1f, 0.1f, 0, 0.9f, 0.9f, 0.3f, secondColor);
            Fig   = new Cone(0.1f, 0.1f, 0.3f, 0.9f, 0.9f, 1, mainColor);
        }
Exemple #2
0
        public Queen(bool color)
        {
            secondColor = Color.Brown;
            mainColor   = color ? Color.Wheat : Color.DarkGray;

            baseF = new Box(0.1f, 0.1f, 0, 0.9f, 0.9f, 0.3f, secondColor);
            Fig1  = new Box(0.2f, 0.2f, 0.3f, 0.8f, 0.8f, 0.8f, mainColor);
            Fig2  = new Cone(0.2f, 0.2f, 0.8f, 0.8f, 0.8f, 1.0f, secondColor);
        }