rothko
Version:
what color is your landscape
40 lines (39 loc) • 1.16 kB
JavaScript
// Rothko.js
//
// zeakd
(function(factory){
'use strict'
// commonjs
if (typeof exports === "object" && typeof module !== "undefined") {
module.export = factory(
require('drawing-kit'),
require('histogram-analyze'),
require('chroma')
)
// amd
} else if (typeof define === 'function' && define.amd) {
define([
'drawing-kit',
'histogram-analyze',
'chroma'
], factory);
// <script>
} else {
var root;
if (typeof window !== "undefined") {
root = window;
} else if (typeof global !== "undefined") {
root = global;
} else if (typeof self !== "undefined") {
root = self;
} else {
// works providing we're not in "use strict";
// needed for Java 8 Nashorn
// see https://github.com/facebook/react/issues/3037
root = this;
}
root.Rothko = factory(root.drawingKit,
root.histogramAnalyze,
root.chroma);
}
}(function(kit, hA, chroma){