# Colors

## Color Blocks

You can use colors, for [embeds](https://docs.scratch-for-discord.com/use/toolbox/discord/embeds "mention") or some [#image-editing](https://docs.scratch-for-discord.com/use/functions/files/images#image-editing "mention")&#x20;

<table><thead><tr><th width="384" align="center">Input</th><th align="center">Function</th><th align="center">Output</th></tr></thead><tbody><tr><td align="center"><img src="https://2077548579-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3xg7dEw96L10OHOz0yDz%2Fuploads%2FLW0iX8kv9IZ35y2I46r5%2Fscreenshot%20(50).png?alt=media&#x26;token=62970ba7-2e6c-44d4-aca3-003b137ca1bb" alt="" data-size="line"></td><td align="center">Basic color picker</td><td align="center">#ff0000</td></tr><tr><td align="center"><img src="https://2077548579-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3xg7dEw96L10OHOz0yDz%2Fuploads%2FuD4wmxnmDNPv5iHBjCSa%2Fscreenshot%20(51).png?alt=media&#x26;token=be8d8622-b8f6-4aae-bf92-c33064d6f1ef" alt="" data-size="original"></td><td align="center">Generate a random color each time</td><td align="center">(#000000 - #ffffff)</td></tr><tr><td align="center"><img src="https://2077548579-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3xg7dEw96L10OHOz0yDz%2Fuploads%2FUYL0gPIQD9AqbbleLDWU%2Fscreenshot%20(52).png?alt=media&#x26;token=de257daa-3bbf-4a48-8afe-d681994f6e67" alt="" data-size="original"></td><td align="center">Input a custom <a href="https://g.co/kgs/7MwFUq">HEX</a> color</td><td align="center">#4287f5</td></tr><tr><td align="center"><img src="https://2077548579-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3xg7dEw96L10OHOz0yDz%2Fuploads%2FFEh4S4WBvO6hQxYMUdFA%2Fscreenshot%20(53).png?alt=media&#x26;token=ed38fa98-7bf9-458e-9007-ec2123bf4a58" alt="" data-size="original"></td><td align="center">Make a custom Color Using RGB (Red, Green, Blue)</td><td align="center">RGB (255, 127.5, 0)</td></tr><tr><td align="center"><img src="https://2077548579-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3xg7dEw96L10OHOz0yDz%2Fuploads%2FBDSjFF7dnA8yR8cceTt7%2Fscreenshot%20(55).png?alt=media&#x26;token=e6b00ed8-c0cf-46b6-81c2-9d245a895ec8" alt="" data-size="original"></td><td align="center">Blend 2 colors, that mean their two Hex codes will be combined into one new color</td><td align="center">#991a80</td></tr></tbody></table>

## Example

<figure><img src="https://2077548579-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3xg7dEw96L10OHOz0yDz%2Fuploads%2FPgY83dklFEH7U9kCOFtN%2Fscreenshot%20(56).png?alt=media&#x26;token=02d7b9cb-e8df-4469-8a2f-c52bc848bb2c" alt=""><figcaption><p>Make an embed, add a color, add a description, send the embed to user</p></figcaption></figure>

### Output

<figure><img src="https://2077548579-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3xg7dEw96L10OHOz0yDz%2Fuploads%2FcHSrtjiG8XLwrSu8iXVA%2FSn%C3%ADmek%20obrazovky%202022-10-10%20215139.png?alt=media&#x26;token=067e4965-18a6-4c0c-b204-2adfe965027b" alt=""><figcaption><p>Received Embed</p></figcaption></figure>

### Cheat

To use an RGB block with 255 colors, you can use simple math

You know that 100 % is 255, but maximal input is 100

So you divide 100 by 255 and multiply it by whatever RGB value you wish

<figure><img src="https://2077548579-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3xg7dEw96L10OHOz0yDz%2Fuploads%2FlaFVokHmr2SnOx9igF8u%2Fscreenshot%20(57).png?alt=media&#x26;token=ff8b1b87-e91d-44a0-b390-8c1f67448630" alt=""><figcaption><p>Make a RGB conventer</p></figcaption></figure>

Output is #ffd25a

which is in RGB 255, 210, 90
