示例#1
0
        /// <summary>
        /// Used to create a foreground color object.
        /// </summary>
        /// <param name="r">Red value [float]</param>
        /// <param name="g">Green value [float]</param>
        /// <param name="b">Blue value [float]</param>
        /// <returns>The defined foreground color.</returns>
        public static ColorRGB CreateForegroundColor(float r, float g, float b)
        {
            var foregroundColor = new ColorRGB(r, g, b);

            return(foregroundColor);
        }
示例#2
0
        /// <summary>
        /// Used to create a background color object.
        /// </summary>
        /// <param name="r">Red value [float]</param>
        /// <param name="g">Green value [float]</param>
        /// <param name="b">Blue value [float]</param>
        /// <returns>The defined background color.</returns>
        public static ColorRGB CreateBackgroundColor(float r, float g, float b)
        {
            var backgroundColor = new ColorRGB(r, g, b);

            return(backgroundColor);
        }