Ejemplo n.º 1
0
        // ===================== PUBLIC methods to modify Graphical View properties ===================

        public void ChangeBackgroundColor(bool gradient, double[] color1, double[] color2)
        {
            if (gradient == true)
            {
                Viewport.GradientBackgroundOn();
                Viewport.SetBackground(color1[0] / 255.0, color1[1] / 255.0, color1[2] / 255.0);
                Viewport.SetBackground2(color2[0] / 255.0, color2[1] / 255.0, color2[2] / 255.0);
            }
            else
            {
                Viewport.GradientBackgroundOff();
                Viewport.SetBackground(color1[0] / 255.0, color1[1] / 255.0, color1[2] / 255.0);
            }
        }