Skip to content

Instantly share code, notes, and snippets.

View timark's full-sized avatar

Tim Aikin timark

View GitHub Profile
internal static class LightsUtils
{
public static int[] GetRgbFromTemperature(double temperature)
{
// Temperature must fit between 1000 and 40000 degrees.
temperature = MathUtils.Clamp(temperature, 1000, 40000);
// All calculations require temperature / 100, so only do the conversion once.
temperature /= 100;
@knownasilya
knownasilya / index.html
Last active November 6, 2023 18:45 — forked from Hagith/drawing-tools.html
Google Maps Advanced Drawing
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="initial-scale=1.0, user-scalable=no">
<meta charset="UTF-8">
<title>Drawing Tools</title>
<script type="text/javascript"
src="http://maps.google.com/maps/api/js?sensor=false&libraries=drawing"></script>
<style type="text/css">
#map, html, body {