ScratchData LogoScratchData
Back to chiru3's profile

blackbody approximation

CHchiru3•Created June 20, 2020
blackbody approximation
1
1
22 views
View on Scratch

Instructions

Click the green flag or the green blob to change the the temperature of our blackbody. I know this is only an approximation and only works for temperatures above 1000K(I don't have enough data below 1000K) Temperature is in Kelvins when you enter it, and shown as thousands of Kelvins Functions used: -Cubic polynomials for calculation of green and blue channels below 6597K -Shifted and scaled versions of 1/x to calculate red and green channels after 6597K This approximation uses the 10 deg color system, and also may be off by a bit. Test 1000K: Expected-#FF3800 Actual-#FF4200

Description

myself Thanks to http://www.vendian.org/mncharity/dir3/blackbody/UnstableURLs/bbr_color.html for the data used in the interpolation. Thanks to desmos.com for doing the interpolation work.

Project Details

Project ID406524623
CreatedJune 20, 2020
Last ModifiedJuly 7, 2021
SharedJune 21, 2020
Visibilityvisible
CommentsAllowed