Skip to content

Instantly share code, notes, and snippets.

@timo22345
timo22345 / kof_animationFrame_test
Created January 10, 2015 09:54
kof_animationFrame_test
<html><head>
<meta charset="utf-8" />
<title> - jsFiddle demo</title>
<script type="text/javascript" src="http://code.jquery.com/jquery-1.11.0.js"></script>
<link rel="stylesheet" type="text/css" href="/css/result-light.css">
@timo22345
timo22345 / flatten.js
Last active March 13, 2024 17:06
Flatten.js, general SVG flattener. Flattens transformations of SVG shapes and paths. All shapes and path commands are supported.
<!doctype html>
<html>
<title>Flatten.js, General SVG Flattener</title>
<head>
<script>
/*
Random path and shape generator, flattener test base: https://jsfiddle.net/fjm9423q/embedded/result/
Basic usage example: https://jsfiddle.net/nrjvmqur/embedded/result/
@timo22345
timo22345 / Raphael's a2c function
Created March 2, 2014 20:03
Raphael's a2c function with cacher
function cacher(f, scope, postprocessor)
{
function newf()
{
var arg = Array.prototype.slice.call(arguments, 0),
args = arg.join("\u2400"),
cache = newf.cache = newf.cache ||
{}, count = newf.count = newf.count || [];
if (cache.hasOwnProperty(args))
{
@timo22345
timo22345 / Fabric.js 1.4.4 modified
Created March 2, 2014 04:03
Here are fixed incorrect bounding box, incorrect positioning and incorrect outline of paths
/* build: `node build.js modules=ALL exclude=gestures,cufon,json minifier=uglifyjs` */
/*! Fabric.js Copyright 2008-2013, Printio (Juriy Zaytsev, Maxim Chernyak) */
var fabric = fabric || { version: "1.4.4" };
if (typeof exports !== 'undefined') {
exports.fabric = fabric;
}
if (typeof document !== 'undefined' && typeof window !== 'undefined') {
fabric.document = document;