Permalink
Browse files

TColor#setHue bugfix, accept x,y params in Rect#setDimensions

  • Loading branch information...
1 parent d0badff commit 26fd479797e4308e022966b28b3cb99e509ba984 @hapticdata committed Jan 18, 2013
Showing with 4 additions and 1 deletion.
  1. +1 −1 lib/toxi/color/TColor.js
  2. +3 −0 lib/toxi/geom/Rect.js
View
@@ -438,7 +438,7 @@ TColor.prototype = {
hue++;
}
this.hsv[0] = hue;
- this.setHSV(this.hsv);
+ return this.setHSV(this.hsv);
},
setMagenta: function(val) {
View
@@ -196,6 +196,9 @@ Rect.prototype = {
},
setDimensions: function(dim){
+ if( arguments.length == 2 ){
+ dim = { x: arguments[0], y: arguments[1] };
+ }
this.width = dim.x;
this.height = dim.y;
return this;

0 comments on commit 26fd479

Please sign in to comment.