From a602d7d657d978608efc729488dfad42842f5948 Mon Sep 17 00:00:00 2001 From: Veno Server Date: Tue, 11 Aug 2009 19:39:11 -0500 Subject: [PATCH] franz.rbg_obj returns an obj representing the rbga format... perhaps this would make arrays more sensible? --- js/franz.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/js/franz.js b/js/franz.js index 091cdb3..53c0f06 100644 --- a/js/franz.js +++ b/js/franz.js @@ -34,6 +34,8 @@ var franz = { return false; }, + rgb_obj: function(r, g, b, a) { return {r: r, b: b, g: g, a: a}; }, + clone: function(obj) { /* Recursively iterate through objects and clone them (Don't even try to put this on the Object prototype (recursion fail)) */ var returnObj = (obj instanceof Array) ? [] : {};