首页 / 优秀作文 /

【www.zgpaoc.com--优秀作文】

摘 要 在使用各种软件时都会与颜色打交道,软件中的颜色都是与某种或几种色彩模式(用数值表示颜色的方式即为色彩模式)相联系的。人们常见、常说的颜色在某个色彩模式下的值(色值)是多少?是我们确定该颜色的关键。实践中人们希望能根据已知的几个常用颜色的色值推知其他颜色的色值,该文通过一个色盘来探索这一问题。
关键词 三原色 基本色 色值 色盘 色环 公式
中图分类号:P144.3 文献标识码:A
Common Color and Color Chart
GUO Fuqiang
(School of Preschool Education, Xinjiang Education Institute, Urumqi, Xinjiang 830001)
Abstract When using a variety of software will be dealing with color, the color in software is related with one or several color mode (color mode is the way to use the numerical representation of color). What the value (color value) is of people often see, often said at a certain color mode? Is the key we determine that color. Practice in which people want to infer the color values of the other colors according to the known color values of several common colors, which pass through a color wheel to explore this issue.
Key words three primary colors; basic color; color value; color wheel; color ring; formula
1 RGB色彩模式
红、绿、蓝为RGB色彩模式的三原色。红、橙、黄、黄绿、绿、青绿、青、靛、蓝、紫、品红、紫红 是RGB色彩模式中的基本色,也是人们最常使用的颜色。色盘(图1)最外圈的色环即为RGB色彩模式的基本色。
图1 基本色从外环向内环颜色逐渐加深
2 HSB色彩模式
HSB色彩模式是将颜色分为色相(H)、饱和度(S)和明度(B)三个因素。色相,即各类色彩的相貌称谓,如红、青蓝、黄等。饱和度相当于家庭电视机的色彩浓度,饱和度高色彩较艳丽,饱和度低色彩就接近灰色。明度也称为亮度,等同于彩色电视机的亮度,亮度高色彩明亮,亮度低色彩暗淡。
3 关联着的HSB与RGB值
从色盘(图1)可看出从外层到内层颜色逐渐变暗,并可看出:
红、橙、黄、黄绿、绿五种色不含任何蓝色成分。
绿、青绿、青、靛、蓝五种色不含任何红色成分。
蓝、紫、品红、紫红、红五种色不含任何绿色成分。
最外层色环(HSB模式下S与B值全为100)上的三原色 红、绿、蓝的补色――青、品红、黄的RGB值分别是:青=绿+蓝,品红=红+蓝,黄=红+绿。
除原色(红,绿,蓝)及它们的补色(青,品红,黄)外,其它颜色的RGB值是将混合这种颜色的原色按比例相加得到。例如:
“橙色”紧邻原色“红色”,而距另一原色“绿色”是距“红色”距离(弧长)的两倍。因此,橙=红+绿/2,即橙色的RGB值是(255,128,0)。色盘上除原色外的其他颜色RGB值都是按距原色的距离(弧长)来确定RGB值的。
五层色环是将最外层12种基本色的每种颜色从最亮(HSB模式下B值为100)到最暗(HSB模式下B值为0)分成五级,每个基本色又派生出四种色。例如:
RGB模式下基本色 橙色(255,128,0)派生出的四种逐渐变暗的橙色分别是――(204,102,0),(153,76,0),(102,51,0),(51,25,0)。
(下转第60页)(上接第40 页)
图2 仅有三原色色值的圆盘
HSB模式下基本色 橙色HSB(30,100,100)派生出的四种不同明度的橙色分别是――HSB(30,100,80),HSB(30,100,60),HSB(30,100,40),HSB(30,100,20)。
RGB模式下色值计算公式为:
��=  ��                                          公式1
其中 = 基本色的或或的值,指色环编号从最外层依次为0、1、2、3、4。
例如:橙色第3层色块值=(53)/5��5=102,值=(53)/5��8=51.2,整数部分为51,值=(53)/5��0。即橙色第3层色块RGB值是――(102,51,0)。
4 结论
(1)记住红、绿、蓝三原色在RGB模式下的色值(图2),即刻能根据距三原色的距离(弧长)推算出其他颜色(橙、黄、黄绿、青绿、青、靛、紫、品红、紫红)的色值。
(2)根据基本色(红、橙、黄、黄绿、绿、青绿、青、靛、蓝、紫、品红、紫红)的色值及公式1即刻能算出比基本色逐渐变暗的其它12��48种颜色的色值(图1)。
(3)如果将公式1改为
��=  ��                                    公式2
其中 = 基本色的或或的值,指色环编号从最外层依次为0、1、2、…、99。
即刻能算出比基本色逐渐变暗的其它12��=1188种颜色的色值。

常用颜色与色值图表 Common Color and Color Chart

Abstract:

When using a variety of software will be dealing with color, the color in software is related with one or several color mode (color mode is the way to use the numerical representation of color). What the value (color value) is of people of-ten see, often said at a certain color mode? Is the key we determine that color. Practice in which people want to infer the color values of the other colors according to the known color values of several common colors, which pass through a color wheel to explore this issue.

本文来源:http://www.zgpaoc.com/youxiuzuowen/44402.html