color

Privateunrated

Content

129 lines
{=(comment):Change the prefix}
{=(prefix):[p]}

{=(li):0,1,2,3,4,5,6,7,8,9,a,b,c,d,e,f}

{=(inp):{if({in(#):{1}}==true):{1}|{if({in(,):{1}}==true):{cycle({m:trunc({list(0):{1}}/16^1)}):{li}}{cycle({m:trunc({list(0):{1}}/16^0)}):{li}}{cycle({m:trunc({list(1):{1}}/16^1)}):{li}}{cycle({m:trunc({list(1):{1}}/16^0)}):{li}}{cycle({m:trunc({list(2):{1}}/16^1)}):{li}}{cycle({m:trunc({list(2):{1}}/16^0)}):{li}}|{cycle({m:trunc({1}/16^5)}):{li}}{cycle({m:trunc({1}/16^4)}):{li}}{cycle({m:trunc({1}/16^3)}):{li}}{cycle({m:trunc({1}/16^2)}):{li}}{cycle({m:trunc({1}/16^1)}):{li}}{cycle({m:trunc({1}/16^0)}):{li}}}}}
{=(inp):{if({in(m):{1}}==true):{user(color)}|{inp}}}
{=(inp):{if({user(id)}!={target(id)}):{target(color)}|{inp}}}

{=(st):{lower:{replace(,,):{replace(#,):{inp}}}}}

{=(hex5):{or({in(h):{args}}==true|{args(1+)}==):{rand:{li}}|{list(1):{st}}}}
{=(hex4):{or({in(h):{args}}==true|{args(1+)}==):{rand:{li}}|{list(2):{st}}}}
{=(hex3):{or({in(h):{args}}==true|{args(1+)}==):{rand:{li}}|{list(3):{st}}}}
{=(hex2):{or({in(h):{args}}==true|{args(1+)}==):{rand:{li}}|{list(4):{st}}}}
{=(hex1):{or({in(h):{args}}==true|{args(1+)}==):{rand:{li}}|{list(5):{st}}}}
{=(hex0):{or({in(h):{args}}==true|{args(1+)}==):{rand:{li}}|{list(6):{st}}}}


{=(rgb5):{replace(a,10):{replace(b,11):{replace(c,12):{replace(d,13):{replace(e,14):{replace(f,15):{hex5}}}}}}}}
{=(rgb4):{replace(a,10):{replace(b,11):{replace(c,12):{replace(d,13):{replace(e,14):{replace(f,15):{hex4}}}}}}}}
{=(rgb3):{replace(a,10):{replace(b,11):{replace(c,12):{replace(d,13):{replace(e,14):{replace(f,15):{hex3}}}}}}}}
{=(rgb2):{replace(a,10):{replace(b,11):{replace(c,12):{replace(d,13):{replace(e,14):{replace(f,15):{hex2}}}}}}}}
{=(rgb1):{replace(a,10):{replace(b,11):{replace(c,12):{replace(d,13):{replace(e,14):{replace(f,15):{hex1}}}}}}}}
{=(rgb0):{replace(a,10):{replace(b,11):{replace(c,12):{replace(d,13):{replace(e,14):{replace(f,15):{hex0}}}}}}}}

{=(hex):{hex5}{hex4}{hex3}{hex2}{hex1}{hex0}}

{=(rgbr):{m:trunc({rgb5}*16+{rgb4})}}
{=(rgbg):{m:trunc({rgb3}*16+{rgb2})}}
{=(rgbb):{m:trunc({rgb1}*16+{rgb0})}}

{=(dec):{m:trunc({rgb5}*16^5+{rgb4}*16^4+{rgb3}*16^3+{rgb2}*16^2+{rgb1}*16^1+{rgb0}*16^0)}}

{=(bin5):{list({rgb5}):0000,0001,0010,0011,0100,0101,0110,0111,1000,1001,1010,1011,1100,1101,1110,1111}}
{=(bin4):{list({rgb4}):0000,0001,0010,0011,0100,0101,0110,0111,1000,1001,1010,1011,1100,1101,1110,1111}}
{=(bin3):{list({rgb3}):0000,0001,0010,0011,0100,0101,0110,0111,1000,1001,1010,1011,1100,1101,1110,1111}}
{=(bin2):{list({rgb2}):0000,0001,0010,0011,0100,0101,0110,0111,1000,1001,1010,1011,1100,1101,1110,1111}}
{=(bin1):{list({rgb1}):0000,0001,0010,0011,0100,0101,0110,0111,1000,1001,1010,1011,1100,1101,1110,1111}}
{=(bin0):{list({rgb0}):0000,0001,0010,0011,0100,0101,0110,0111,1000,1001,1010,1011,1100,1101,1110,1111}}

{=(bin):{bin5}{bin4}{bin3}{bin2}{bin1}{bin0}}

{=(json):{if({in(h):{args}}==true):{
    "fields":[
        {
            "name":"`{prefix}color`",
            "value":"Shows a random color.",
            "inline":false
        },
        {
            "name":"`{prefix}color #<hexadecimal>`",
            "value":"Get a color by using hexadecimal.\nExample: `{prefix}color #7289da`",
            "inline":false
        },
        {
            "name":"`{prefix}color <R,G,B>`",
            "value":"Get a color using RGB.\nExample: `{prefix}color 114,137,218`",
            "inline":false
        },
        {
            "name":"`{prefix}color <decimal>`",
            "value":"Get a color using decimal.\nExample: `{prefix}color 7506394`",
            "inline":false
        },
        {
            "name":"`{prefix}color <mention>`",
            "value":"Shows the namecolor of the mentioned user.\nExample: `{prefix}color @Carl-bot#1536`",
            "inline":false
        },
        {
            "name":"`{prefix}color me`",
            "value":"Shows your namecolor.",
            "inline":false
        },
        {
            "name":"`{prefix}color help`",
            "value":"Shows this message.",
            "inline":false
        }
    ],
    "color":7506394,
    "type":"rich",
    "description":"You can change the prefix used in the examples by replacing `{prefix}` with your prefix at the top of the tag on the [dashboard](https://carl.gg/dashboard/{server(id)}/tags).",
    "title":"Help for`{prefix}color`"
}|{
    "footer":{
        "text":"{prefix}color help"
    },
    "thumbnail":{
        "url":"https:\/\/dummyimage.com\/128x128\/{hex}\/{hex}f&text=",
        "proxy_url":"https://imgur.com/kBVpzsG",
        "width":128,
        "height":128
    },
    "fields":[
        {
            "name":"Hexadecimal",
            "value":"`#{hex}`",
            "inline":true
        },
        {
            "name":"RGB",
            "value":"`{rgbr},{rgbg},{rgbb}`",
            "inline":true
        },
        {
            "name":"Decimal",
            "value":"`{dec}`",
            "inline":true
        },
        {
            "name":"RGB%",
            "value":"{if({m:{rgbr}+{rgbg}+{rgbb}}==0.0):`Can not divide by 0`|`{m:round({rgbr}/({rgbr}+{rgbg}+{rgbb})*1000)/10}%` `{m:round({rgbg}/({rgbr}+{rgbg}+{rgbb})*1000)/10}%` `{m:round({rgbb}/({rgbr}+{rgbg}+{rgbb})*1000)/10}%`}",
            "inline":true
        },
        {
            "name":"Binary",
            "value":"`{bin}`",
            "inline":true
        }
    ],
    "color":{dec},
    "type":"rich",
    "url":"https:\/\/www.color-hex.com\/color\/{hex}",
    "title":"#{hex}"
}}}

{c:customembed {json}}
Raw JSON
{
  "id": 254664,
  "created_at": "2022-04-26T10:36:56.138Z",
  "tag_name": "color",
  "nsfw": false,
  "owner_id": "679867543066116169",
  "uses": 4,
  "description": null,
  "restricted": false,
  "shared": false,
  "deleted": false,
  "safe": "unrated",
  "hidden": false,
  "guild_id": "722120732964028456",
  "sharer": "679867543066116169",
  "content": "{=(comment):Change the prefix}\n{=(prefix):[p]}\n\n{=(li):0,1,2,3,4,5,6,7,8,9,a,b,c,d,e,f}\n\n{=(inp):{if({in(#):{1}}==true):{1}|{if({in(,):{1}}==true):{cycle({m:trunc({list(0):{1}}/16^1)}):{li}}{cycle({m:trunc({list(0):{1}}/16^0)}):{li}}{cycle({m:trunc({list(1):{1}}/16^1)}):{li}}{cycle({m:trunc({list(1):{1}}/16^0)}):{li}}{cycle({m:trunc({list(2):{1}}/16^1)}):{li}}{cycle({m:trunc({list(2):{1}}/16^0)}):{li}}|{cycle({m:trunc({1}/16^5)}):{li}}{cycle({m:trunc({1}/16^4)}):{li}}{cycle({m:trunc({1}/16^3)}):{li}}{cycle({m:trunc({1}/16^2)}):{li}}{cycle({m:trunc({1}/16^1)}):{li}}{cycle({m:trunc({1}/16^0)}):{li}}}}}\n{=(inp):{if({in(m):{1}}==true):{user(color)}|{inp}}}\n{=(inp):{if({user(id)}!={target(id)}):{target(color)}|{inp}}}\n\n{=(st):{lower:{replace(,,):{replace(#,):{inp}}}}}\n\n{=(hex5):{or({in(h):{args}}==true|{args(1+)}==):{rand:{li}}|{list(1):{st}}}}\n{=(hex4):{or({in(h):{args}}==true|{args(1+)}==):{rand:{li}}|{list(2):{st}}}}\n{=(hex3):{or({in(h):{args}}==true|{args(1+)}==):{rand:{li}}|{list(3):{st}}}}\n{=(hex2):{or({in(h):{args}}==true|{args(1+)}==):{rand:{li}}|{list(4):{st}}}}\n{=(hex1):{or({in(h):{args}}==true|{args(1+)}==):{rand:{li}}|{list(5):{st}}}}\n{=(hex0):{or({in(h):{args}}==true|{args(1+)}==):{rand:{li}}|{list(6):{st}}}}\n\n\n{=(rgb5):{replace(a,10):{replace(b,11):{replace(c,12):{replace(d,13):{replace(e,14):{replace(f,15):{hex5}}}}}}}}\n{=(rgb4):{replace(a,10):{replace(b,11):{replace(c,12):{replace(d,13):{replace(e,14):{replace(f,15):{hex4}}}}}}}}\n{=(rgb3):{replace(a,10):{replace(b,11):{replace(c,12):{replace(d,13):{replace(e,14):{replace(f,15):{hex3}}}}}}}}\n{=(rgb2):{replace(a,10):{replace(b,11):{replace(c,12):{replace(d,13):{replace(e,14):{replace(f,15):{hex2}}}}}}}}\n{=(rgb1):{replace(a,10):{replace(b,11):{replace(c,12):{replace(d,13):{replace(e,14):{replace(f,15):{hex1}}}}}}}}\n{=(rgb0):{replace(a,10):{replace(b,11):{replace(c,12):{replace(d,13):{replace(e,14):{replace(f,15):{hex0}}}}}}}}\n\n{=(hex):{hex5}{hex4}{hex3}{hex2}{hex1}{hex0}}\n\n{=(rgbr):{m:trunc({rgb5}*16+{rgb4})}}\n{=(rgbg):{m:trunc({rgb3}*16+{rgb2})}}\n{=(rgbb):{m:trunc({rgb1}*16+{rgb0})}}\n\n{=(dec):{m:trunc({rgb5}*16^5+{rgb4}*16^4+{rgb3}*16^3+{rgb2}*16^2+{rgb1}*16^1+{rgb0}*16^0)}}\n\n{=(bin5):{list({rgb5}):0000,0001,0010,0011,0100,0101,0110,0111,1000,1001,1010,1011,1100,1101,1110,1111}}\n{=(bin4):{list({rgb4}):0000,0001,0010,0011,0100,0101,0110,0111,1000,1001,1010,1011,1100,1101,1110,1111}}\n{=(bin3):{list({rgb3}):0000,0001,0010,0011,0100,0101,0110,0111,1000,1001,1010,1011,1100,1101,1110,1111}}\n{=(bin2):{list({rgb2}):0000,0001,0010,0011,0100,0101,0110,0111,1000,1001,1010,1011,1100,1101,1110,1111}}\n{=(bin1):{list({rgb1}):0000,0001,0010,0011,0100,0101,0110,0111,1000,1001,1010,1011,1100,1101,1110,1111}}\n{=(bin0):{list({rgb0}):0000,0001,0010,0011,0100,0101,0110,0111,1000,1001,1010,1011,1100,1101,1110,1111}}\n\n{=(bin):{bin5}{bin4}{bin3}{bin2}{bin1}{bin0}}\n\n{=(json):{if({in(h):{args}}==true):{\n    \"fields\":[\n        {\n            \"name\":\"`{prefix}color`\",\n            \"value\":\"Shows a random color.\",\n            \"inline\":false\n        },\n        {\n            \"name\":\"`{prefix}color #<hexadecimal>`\",\n            \"value\":\"Get a color by using hexadecimal.\\nExample: `{prefix}color #7289da`\",\n            \"inline\":false\n        },\n        {\n            \"name\":\"`{prefix}color <R,G,B>`\",\n            \"value\":\"Get a color using RGB.\\nExample: `{prefix}color 114,137,218`\",\n            \"inline\":false\n        },\n        {\n            \"name\":\"`{prefix}color <decimal>`\",\n            \"value\":\"Get a color using decimal.\\nExample: `{prefix}color 7506394`\",\n            \"inline\":false\n        },\n        {\n            \"name\":\"`{prefix}color <mention>`\",\n            \"value\":\"Shows the namecolor of the mentioned user.\\nExample: `{prefix}color @Carl-bot#1536`\",\n            \"inline\":false\n        },\n        {\n            \"name\":\"`{prefix}color me`\",\n            \"value\":\"Shows your namecolor.\",\n            \"inline\":false\n        },\n        {\n            \"name\":\"`{prefix}color help`\",\n            \"value\":\"Shows this message.\",\n            \"inline\":false\n        }\n    ],\n    \"color\":7506394,\n    \"type\":\"rich\",\n    \"description\":\"You can change the prefix used in the examples by replacing `{prefix}` with your prefix at the top of the tag on the [dashboard](https://carl.gg/dashboard/{server(id)}/tags).\",\n    \"title\":\"Help for`{prefix}color`\"\n}|{\n    \"footer\":{\n        \"text\":\"{prefix}color help\"\n    },\n    \"thumbnail\":{\n        \"url\":\"https:\\/\\/dummyimage.com\\/128x128\\/{hex}\\/{hex}f&text=\",\n        \"proxy_url\":\"https://imgur.com/kBVpzsG\",\n        \"width\":128,\n        \"height\":128\n    },\n    \"fields\":[\n        {\n            \"name\":\"Hexadecimal\",\n            \"value\":\"`#{hex}`\",\n            \"inline\":true\n        },\n        {\n            \"name\":\"RGB\",\n            \"value\":\"`{rgbr},{rgbg},{rgbb}`\",\n            \"inline\":true\n        },\n        {\n            \"name\":\"Decimal\",\n            \"value\":\"`{dec}`\",\n            \"inline\":true\n        },\n        {\n            \"name\":\"RGB%\",\n            \"value\":\"{if({m:{rgbr}+{rgbg}+{rgbb}}==0.0):`Can not divide by 0`|`{m:round({rgbr}/({rgbr}+{rgbg}+{rgbb})*1000)/10}%` `{m:round({rgbg}/({rgbr}+{rgbg}+{rgbb})*1000)/10}%` `{m:round({rgbb}/({rgbr}+{rgbg}+{rgbb})*1000)/10}%`}\",\n            \"inline\":true\n        },\n        {\n            \"name\":\"Binary\",\n            \"value\":\"`{bin}`\",\n            \"inline\":true\n        }\n    ],\n    \"color\":{dec},\n    \"type\":\"rich\",\n    \"url\":\"https:\\/\\/www.color-hex.com\\/color\\/{hex}\",\n    \"title\":\"#{hex}\"\n}}}\n\n{c:customembed {json}}",
  "embed": "{}",
  "last_fetched": "2026-10-20T21:58:48.328Z"
}