1. <strong id="7actg"></strong>
    2. <table id="7actg"></table>

    3. <address id="7actg"></address>
      <address id="7actg"></address>
      1. <object id="7actg"><tt id="7actg"></tt></object>

        Chroma.jsJavaScript 顏色處理庫(kù)

        聯(lián)合創(chuàng)作 · 2023-09-22 09:05

        Chroma.js 是一個(gè)微型的 JavaScript 庫(kù) (8.5kb) 可實(shí)現(xiàn)各種顏色的轉(zhuǎn)換和顏色處理。

        使用方法:

        Initiate and manipulate colors:

        chroma('#D4F880').darken().hex();  // #9BC04B

        Working with color scales is easy, too:

        scale = chroma.scale(['white', 'red']);
        scale(0.5).hex(); // #FF7F7F

        Lab/Lch interpolation looks better than than RGB

        chroma.scale(['white', 'red']).mode('lab');

        Custom domains! Quantiles! Color Brewer!!

        chroma.scale('RdYlBu').domain(myValues, 7, 'quantiles');

        And why not use logarithmic color scales once in your life?

        chroma.scale(['lightyellow', 'navy']).domain([1, 100000], 7, 'log');
        瀏覽 19
        點(diǎn)贊
        評(píng)論
        收藏
        分享

        手機(jī)掃一掃分享

        編輯 分享
        舉報(bào)
        評(píng)論
        圖片
        表情
        推薦
        點(diǎn)贊
        評(píng)論
        收藏
        分享

        手機(jī)掃一掃分享

        編輯 分享
        舉報(bào)
        1. <strong id="7actg"></strong>
        2. <table id="7actg"></table>

        3. <address id="7actg"></address>
          <address id="7actg"></address>
          1. <object id="7actg"><tt id="7actg"></tt></object>
            操大屁股视频 | 欧美人妻视频 | 啊┅┅快┅┅用力啊岳视频 | 女人下面毛茸茸的视频 | 91久久在线 | 岛国A片 蜜桃一区二区三区 | 粗口小sao货h | 高清无码视频网站在线观看 | 色戒免费观看视频无删减版在线观看 | 女人18片毛片90分钟以上 |