Scratch for Discord
Web-ApplicationDiscord Server
  • 🏠Home
  • 👋Introduction
    • About Scratch for Discord
  • 🎓Tutorial
    • Block Usage
    • Bot Setup
    • Hosting
    • Slash Commands
  • 🧰Toolbox
    • 💼Base
    • ⚽Basic
      • Text
      • Math
      • Colors
    • 🔩Functions
      • Logic
        • If logic
        • State Machines
      • Loops
      • Lists
      • Variables
        • Var
        • Let and Const
      • Functions
      • Collections
      • Buffers
      • Objects
      • 💾Database
      • 📂Files
        • 🖼️Images
          • 📬Member Cards
      • 🔑Securing
    • 🖥️Discord
      • 🎨Embeds
      • 📻Interactions
        • ⚒️Slash
          • 📤Actions
            • 🧱Stacks
            • 🔎Reporters
          • 📥Events
        • Button
        • Menu
        • Context menu
        • Forms
      • 🥁Music
        • 📜Music Lyrics
      • 🗄️Servers
        • 😀Emojis & Stickers
          • 📤Actions
          • 📤Events
        • 🔰Roles
          • 📤Actions
            • 🧱Stacks
            • ❔Booleans
          • 📤Events
        • 🗓️Schedule events
          • 📤Actions
          • 📤Events
        • 📺Channels
          • 📤Actions
          • 📥Events
        • 💬Messages
          • 📤Actions
            • 📝Messages
            • 📢Threads
            • 🔗Webhooks
            • 🥳Reactions
          • 📥Events
          • 🔎Reporters
            • 📌Message Context
        • 👥Members
          • 📤Actions
          • 📥Events
            • 📭Leave
    • 🚀Applications
      • 📊Charts
    • 🌐Websites
      • Dashboard
  • 🖥️Interface
    • ⚙️Settings
    • ⌨️Hotkeys
    • ▶️Download & Run
    • 🖇️Git
  • 🪄Advanced
    • Custom Code
  • 🔗Links
    • 📦Packages
    • ❔FAQ
    • Web-Application
    • Discord Server
    • Source Code
Powered by GitBook
On this page
  • Color Blocks
  • Example
  • Output
  • Cheat

Was this helpful?

Edit on GitHub
  1. Toolbox
  2. Basic

Colors

PreviousMathNextFunctions

Last updated 1 year ago

Was this helpful?

Color Blocks

You can use colors, for Embeds or some

Input
Function
Output

Basic color picker

#ff0000

Generate a random color each time

(#000000 - #ffffff)

#4287f5

Make a custom Color Using RGB (Red, Green, Blue)

RGB (255, 127.5, 0)

Blend 2 colors, that mean their two Hex codes will be combined into one new color

#991a80

Example

Output

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

Output is #ffd25a

which is in RGB 255, 210, 90

Input a custom color

🧰
⚽
HEX
Make an embed, add a color, add a description, send the embed to user
Received Embed
Make a RGB conventer
Image Editing