ScratchData LogoScratchData
Back to ABC124816's profile

HSB to RGB color palette

ABABC124816•Created June 29, 2025
HSB to RGB color palette
6
6
30 views
View on Scratch

Instructions

Drag (or click on) the sliders to adjust the pen color. Made for the SDS 'Our Colorful World'. I recommend TurboWarp for proper sync (otherwise the sync is terrible on laggy devices): https://turbowarp.org/1193196333?hqpen This is a sample project using a HSB color palette the converts to RGB for all your pen projects. Please give credit if you want to use it. All code for the palette is in the 'color palette' sprite, and the color is stored as a number in the variable 'hex code'. This color palette uses vey simple shapes and gradients, and does not use the 'touching color' block, making it more efficient compared to other color palettes.

Description

This is a sample project using a HSB color palette the converts to RGB for all your pen projects. This color palette uses vey simple shapes and gradients (without using the pen), and does not use the 'touching color' block, making it more efficient compared to other color palettes. Please give credit if you want to use it. All code for the palette is in the 'color palette' sprite, and the color is stored as a number in the variable 'hex code'. If you are insistent on using HSB , do note that the variable 'color' ranges from 0.0 to 6.0, and the variables 'saturation' and 'brightness' range from 0.0 to 1.0. You will have to multiply the variables by 100 (or 100/6 for color) before using the built-in HSB pen blocks (set pen 'color' to () and change pen 'color' to ()) The reason for the font is because I borrowed it from one of the projects I am working on, in case you are wondering. It is a modification of the alba font kindly ported to Scratch by @alia5: https://scratch.mit.edu/projects/107222011/ You can always change the font in the costumes if you want a different one. Credit to https://www.rapidtables.com/convert/color/hsv-to-rgb.html for converting HSB values to RGB for the color palette. Credit to @GarboMuffin for giving TurboWarp the ability to detect the custom boolean 'is compiled?' The song is Xenogenesis by TheFatRat (This song is a decade old and is still a banger.)

Project Details

Project ID1193196333
CreatedJune 29, 2025
Last ModifiedJuly 11, 2025
SharedJuly 5, 2025
Visibilityvisible
CommentsAllowed