/*
* This file is part of unity-2d
*
* Copyright 2011 Canonical Ltd.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; version 3.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see .
*
* The fromIso8601 function is based on:
* Date.parse with progressive enhancement for ISO 8601
* © 2011 Colin Snover
* Released under MIT license.
*
* Adapted by Ugo Riboni
*/
.pragma library
/* Default color pallette */
var orange = "#DD4814"
var canonicalAubergine = "#772953"
var lightAubergine = "#77216F"
var mediumAubergine = "#5E2750"
var darkAubergine = "#2C001E"
var darkAubergineDesaturated = "#2c1625"
var warmGrey = "#AEA79F"
var coolGrey = "#333333"
var MS_PER_HOUR = 1000 * 3600
/* Convert strings like "one-two-three" to "OneTwoThree" */
function convertToCamelCase( name ) {
var chunksArray = name.split('-')
var camelName = ''
for (var i=0; i= len-1) return cya
cxb = lx[i+1]
if (x < cxb) {
cyb = ly[i+1]
return linearInterpolation(cxa, cxb, cya, cyb, x)
}
} else {
return cya
}
}
}