>> 古い記事: [雑ログ] timidity, aseqview (2007-07-10)
<< 新しい記事: Script-Fu: 水平・垂直それぞれの中心を示すガイドを追加

スポンサーサイト

上記の広告は1ヶ月以上更新のないブログに表示されています。
新しい記事を書く事で広告が消せます。

Tango Icon パレット色のテキストデータ

本家の方にテキスト化された データが見当たらなかったので勝手に作りました。 横着コピペ用。
butter-1butter-1 fce94ffce94f
butter-2butter-2 edd400edd400
butter-3butter-3 c4a000c4a000
orange-1orange-1 fcaf3efcaf3e
orange-2orange-2 f57900f57900
orange-3orange-3 ce5c00ce5c00
chocolate-1chocolate-1 e9b96ee9b96e
chocolate-2chocolate-2 c17d11c17d11
chocolate-3chocolate-3 8f59028f5902
chameleon-1chameleon-1 8ae2348ae234
chameleon-2chameleon-2 73d21673d216
chameleon-3chameleon-3 4e9a064e9a06
skyblue-1skyblue-1 729fcf729fcf
skyblue-2skyblue-2 3465a43465a4
skyblue-3skyblue-3 204a87204a87
plum-1plum-1 ad7fa8ad7fa8
plum-2plum-2 75507b75507b
plum-3plum-3 5c35665c3566
scarletred-1scarletred-1 ef2929ef2929
scarletred-2scarletred-2 cc0000cc0000
scarletred-3scarletred-3 a40000a40000
alminium-1alminium-1 eeeeeceeeeec
alminium-2alminium-2 d3d7cfd3d7cf
alminium-3alminium-3 babdb6babdb6
alminium-4alminium-4 888a85888a85
alminium-5alminium-5 555753555753
alminium-6alminium-6 2e34362e3436
以下、CSV と Ruby用ハッシュ、Emacs Lisp用関数です。

CSV

butter-1,     fce94f
butter-2,     edd400
butter-3,     c4a000
orange-1,     fcaf3e
orange-2,     f57900
orange-3,     ce5c00
chocolate-1,  e9b96e
chocolate-2,  c17d11
chocolate-3,  8f5902
chameleon-1,  8ae234
chameleon-2,  73d216
chameleon-3,  4e9a06
skyblue-1,    729fcf
skyblue-2,    3465a4
skyblue-3,    204a87
plum-1,       ad7fa8
plum-2,       75507b
plum-3,       5c3566
scarletred-1, ef2929
scarletred-2, cc0000
scarletred-3, a40000
alminium-1,   eeeeec
alminium-2,   d3d7cf
alminium-3,   babdb6
alminium-4,   888a85
alminium-5,   555753
alminium-6,   2e3436

Ruby用ハッシュ

tango_icon_pallete = {
  "butter-1",     "fce94f",
  "butter-2",     "edd400",
  "butter-3",     "c4a000",
  "orange-1",     "fcaf3e",
  "orange-2",     "f57900",
  "orange-3",     "ce5c00",
  "chocolate-1",  "e9b96e",
  "chocolate-2",  "c17d11",
  "chocolate-3",  "8f5902",
  "chameleon-1",  "8ae234",
  "chameleon-2",  "73d216",
  "chameleon-3",  "4e9a06",
  "skyblue-1",    "729fcf",
  "skyblue-2",    "3465a4",
  "skyblue-3",    "204a87",
  "plum-1",       "ad7fa8",
  "plum-2",       "75507b",
  "plum-3",       "5c3566",
  "scarletred-1", "ef2929",
  "scarletred-2", "cc0000",
  "scarletred-3", "a40000",
  "alminium-1",   "eeeeec",
  "alminium-2",   "d3d7cf",
  "alminium-3",   "babdb6",
  "alminium-4",   "888a85",
  "alminium-5",   "555753",
  "alminium-6",   "2e3436"
}

Emacs Lisp


(defun tango-color (name)
  "Tango color palette."
  (interactive)
  (concat "#"
          (assoc-default
           name
           '(("butter-1"     . "fce94f")
             ("butter-2"     . "edd400")
             ("butter-3"     . "c4a000")
             ("orange-1"     . "fcaf3e")
             ("orange-2"     . "f57900")
             ("orange-3"     . "ce5c00")
             ("chocolate-1"  . "e9b96e")
             ("chocolate-2"  . "c17d11")
             ("chocolate-3"  . "8f5902")
             ("chameleon-1"  . "8ae234")
             ("chameleon-2"  . "73d216")
             ("chameleon-3"  . "4e9a06")
             ("skyblue-1"    . "729fcf")
             ("skyblue-2"    . "3465a4")
             ("skyblue-3"    . "204a87")
             ("plum-1"       . "ad7fa8")
             ("plum-2"       . "75507b")
             ("plum-3"       . "5c3566")
             ("scarletred-1" . "ef2929")
             ("scarletred-2" . "cc0000")
             ("scarletred-3" . "a40000")
             ("alminium-1"   . "eeeeec")
             ("alminium-2"   . "d3d7cf")
             ("alminium-3"   . "babdb6")
             ("alminium-4"   . "888a85")
             ("alminium-5"   . "555753")
             ("alminium-6"   . "2e3436")))))

(tango-color "butter-1") ;=> "#fce94f"

>> 古い記事: [雑ログ] timidity, aseqview (2007-07-10)
<< 新しい記事: Script-Fu: 水平・垂直それぞれの中心を示すガイドを追加
** ホームに戻る

コメント

コメントの投稿

管理者にだけ表示を許可する

|
上記広告は1ヶ月以上更新のないブログに表示されています。新しい記事を書くことで広告を消せます。