Skip to content

Instantly share code, notes, and snippets.

View monkianer's full-sized avatar
🐵
_

monkianer monkianer

🐵
_
  • .tw
View GitHub Profile
@monkianer
monkianer / Color.js
Created February 19, 2020 16:46 — forked from darkwing/Color.js
/*
Script: Color.js
Class for creating and manipulating colors in JavaScript. Includes basic color manipulations and HSB <-> RGB <-> HEX Conversions.
License:
MIT-style license.
*/
function Color(params){
var ptype = $type(params);
@monkianer
monkianer / RequestAnimationFrame.js
Last active August 29, 2015 14:25 — forked from mrdoob/RequestAnimationFrame.js
Provides requestAnimationFrame in a cross browser way.
/**
* Provides requestAnimationFrame in a cross browser way.
* @author paulirish / http://paulirish.com/
*/
if ( !window.requestAnimationFrame ) {
window.requestAnimationFrame = ( function() {
return window.webkitRequestAnimationFrame ||