Note that SCRIPTDB is now deprecated. I leave this article here for interest only
To make that possible we'll mash up all that color stuff with Google Apps ScriptDB, and serve up color attributes as jSon or jsonp using Google Apps Script as described in Let Google Apps Script do the work. That way, we can get various palettes and their attributes by executing a simple rest query.
The colortable referenced in Playing around with GAS color is in a spreadsheet in Google Apps Script. Here's how to load scriptDB with the data. We only need the name, key, scheme, hex code and reference code. All the other attributes will be computed at query time.
These examples will look up the color table and return the color characteristics.
?key=pfh-blue fox,pfh-surf spray
?name=blue fox,surf spray
These will simply return the color characteristics of the given codes
Regardless of the query, the response format is always the same
If you want beautfied JSON just add &beautiful
By default, JSON will be returned. If you want JSONP just add &callback=callbackfunction
Transitioning is covered more comprehensively in my my book, Going Gas - from VBA to Apps script, available All formats are available now from O'Reilly,Amazon and all good bookshops. You can also read a preview on O'Reilly.
Services > Desktop Liberation - the definitive resource for Google Apps Script and Microsoft Office automation > From VBA to Google Apps Script >