iT邦幫忙

0

取網頁色碼表

請教一下.
我在作一個網頁的長條圖,每個顏色要不同,但有幾個項目不知道,
所以也不知道要取幾個變數的顏色字串,
我想過用迴圈把色碼轉成10進加一個數,再轉回十六進位..但要加多少數值後產生的顏色比較有差異性.不會混謠...
找了半天還是摸不出色碼表的規則..
謝謝..

ccutmis iT邦高手 2 級 ‧ 2012-03-13 18:52:33 檢舉
http://www.w3schools.com/html/html_colors.asp
ccutmis iT邦高手 2 級 ‧ 2012-03-13 19:01:58 檢舉
Web Safe Colors?

Some years ago, when computers supported max 256 different colors, a list of 216 "Web Safe Colors" was suggested as a Web standard, reserving 40 fixed system colors.

The 216 cross-browser color palette was created to ensure that all computers would display the colors correctly when running a 256 color palette.
以上內容轉載自上列網址。
圖片
  直播研討會
圖片
{{ item.channelVendor }} {{ item.webinarstarted }} |
{{ formatDate(item.duration) }}
直播中

1 個回答

6
逮丸逮丸
iT邦大師 1 級 ‧ 2012-03-13 23:51:18
最佳解答

可參考一下站上分享的文章:
[RoR] 簡單畫出 216 網頁安全色表
利用 0 3 6 9 C F 來做 RGB 的排列組合,
所排出216 網頁安全色,
可省掉你轉換進位的麻煩。

若為了區隔長條圖的顏色不那麼相近,
變動 0 3 6 9 C F 的順序做交替的排列組合,
可能較容易達到你的目的。

我要發表回答

立即登入回答