Skip to content

Instantly share code, notes, and snippets.

View kukulski's full-sized avatar

Tim Kukulski kukulski

  • Adobe
  • Oakland, CA
View GitHub Profile
@kukulski
kukulski / nose.html
Created May 2, 2014 04:51
CSS + straight JS color picker parts
<!DOCTYPE html>
<html>
<head lang="en">
<meta charset="UTF-8">
<title>trivial color picker</title>
<style>
.washHSV {
@kukulski
kukulski / PanZoomRect.as
Last active December 10, 2015 17:08
PanZoom logic -- logic to maintain expected 1:1 correspondence with dragged content as it is simultaneously dragged and scaled
/**
I'm building a plugin for Illustrator enable the expected behavior for multitouch pan-zoom,
and needed to get the geometry right for the CoreImage draw API, (for fast feedback)
so here's a tiny as3 implementation that confirms the correct behavior
*/
package {
import flash.geom.Point;
import flash.geom.Rectangle;
public class RectScaler {