Пример #1
0
        private void UpdateFogButtonColor()
        {
            int   red      = ColorTools.ClampInt((int)(selectedFogColor.R * 255));
            int   green    = ColorTools.ClampInt((int)(selectedFogColor.G * 255));
            int   blue     = ColorTools.ClampInt((int)(selectedFogColor.B * 255));
            Color fogColor = Color.FromArgb(255, red, green, blue);

            fogColorButton.BackColor = fogColor;
        }
Пример #2
0
        private void UpdateStageButtonColor()
        {
            int   red        = ColorTools.ClampInt((int)(selectedStageLight.diffuseColor.R * 255));
            int   green      = ColorTools.ClampInt((int)(selectedStageLight.diffuseColor.G * 255));
            int   blue       = ColorTools.ClampInt((int)(selectedStageLight.diffuseColor.B * 255));
            Color stageColor = Color.FromArgb(255, red, green, blue);

            stageDifColorButton.BackColor = stageColor;
        }