Author: tim
Upgrading Landscapes with Brushify
Gears 5 Versus Multiplayer Tech Test Now Open to All Xbox Live Gold Members
Calf Tear, Strain, or Pain? Absolute Best Self Treatment and Exercises.
Foundry Names Jody Madden As New CEO
This Tiny Robot made at Georgia Tech is Barely Visible
TODO: Reduce massive JPG captures to H.264 video
@TODO: Use PHP to combine JPGs into video to reduce Gb of space down to MBs…
Iron Man Flight School (Part 1)
UE4 Include HTML5 JS
XDL Samples
This beekeeper is rescuing bees with deep learning and an iPhone
Using the Desktop Bridge
First Deep Learning-Based 3D Simulation of the Universe
The Road to 100,000 Original Prusa 3D Printers
Tiny Machine Learning on the Edge with TensorFlow Lite Running on SAMD51
Star Wars Jedi: Fallen Order Official Gameplay Demo – EA PLAY 2019
Plants absorb 50nm particles through leaves
Bill Gates on Startups, Investing and Solving The World’s Hardest Problems
Udemy Minecraft Mod Installers
Defending our Bird Nest from the Neighbor’s Cats
Razer Chroma for LIFX App
Meet Adafruit Founder Limor Fried: Open Source Hardware Revolution
Change from green to red based on sound loudness.
function lerp(start: number, end: number, amt: number) { return (1.0 - amt) * start + amt * end; } function lerpColor(from: number, to: number, t: number) { let red = Math.floor(lerp((from & 0xFF), (to & 0xFF), t)); let green = Math.floor(lerp((from & 0xFF00) >> 8, (to & 0xFF00) >> 8, t)); let blue = Math.floor(lerp((from & 0xFF0000) >> 16, (to & 0xFF0000) >> 16, t)); let color = red | (green << 8) | (blue << 16); return color; } function getRed(color: number) { let red = (color & 0xFF); return red; } function getGreen(color: number) { let green = (color & 0xFF00) >> 8; return green; } function getBlue(color: number) { let blue = (color & 0xFF0000) >> 16; return blue; } forever(function () { let red = 0x0000FF; let green = 0x00FF00; light.setBrightness(10); let t = input.soundLevel() / 255.0; let color = lerpColor(red, green, 1.0 - t); light.setAll(light.rgb(getRed(color), getGreen(color), getBlue(color))); })