ScratchData LogoScratchData
Back to _paperN1's profile

RGB Blending

_P_paperN1•Created April 3, 2017
RGB Blending
13
6
156 views
View on Scratch

Instructions

This project demonstrates 4 different techniques to "blend" two colors in RGB form. Slide the int variable to see different blendings of the two color. 1) simply interpolating the values. 2) interpolating toward a new color with the maximum R, G, and B value out of the two. 3) converting each RGB to HSL, then interpolating the H, S, and L values to convert back to RGB. (4/9/17) 4) using a special interpolator function, adding all the corresponding R, G, and B values together, and scaling down if needed

Description

The HSL used in this project assumes that saturation (S) =1, because all colors with HSL fully can still be achieved with H and L still arbitrary and S=1 fixed, to simplify the mathematics.

Project Details

Project ID153909363
CreatedApril 3, 2017
Last ModifiedApril 9, 2017
SharedApril 9, 2017
Visibilityvisible
CommentsAllowed