franz.rbg_obj returns an obj representing the rbga format... perhaps this would make arrays more sensible?
This commit is contained in:
parent
25a926abd5
commit
a602d7d657
1 changed files with 2 additions and 0 deletions
|
|
@ -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) ? [] : {};
|
||||
|
|
|
|||
Reference in a new issue