http://www.shodor.org/stella2java/rgbint.html
Calculate RGB Int
Color in different programming languages is usually represented by a red, green and blue component. The final color is a combination of the three primary colors of light. Typically, values are used ranging from 0 to 255 for each of the components, however, some systems will want you to enter a hexadecimal number in the form RRGGBB where RR is the red value expressed as hexadecimal, GG is the green value, and BB is the blue value. Other systems, such as Java, will want an integer where bits 0-7 are the blue value, 8-15 the green, and 16-23 the red.
This page will let you enter in RGB values, and by pressing evaluate, see the correspinding hexadecimal and integer representations of the color. The background of the page will change to the color selected.
本文介绍如何在不同编程语言中表示颜色,通过红绿蓝三文色组合实现色彩表达,并提供了在线工具帮助用户输入RGB值,即时查看对应的十六进制及整数形式的颜色表示,背景也会随之变化。
2566

被折叠的 条评论
为什么被折叠?



