Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Tidy up

  • Loading branch information...
commit e01b49494c02d357fafaaa8daf49a9c084fe3cb1 1 parent 4619d72
@bebraw authored
Showing with 6 additions and 6 deletions.
  1. +6 −6 src/colorjoe.js
View
12 src/colorjoe.js
@@ -28,24 +28,24 @@ var ret = function(element, initialColor) {
div('bg', oned);
drag(oned, {
- begin: changeHS,
- change: changeHS,
+ begin: changeH,
+ change: changeH,
end: done
});
- function changeHS(p) {
+ function changeH(p) {
hsv.h(p.y);
H(p.y);
changed(hsv);
}
drag(twod, {
- begin: changeS,
- change: changeS,
+ begin: changeSV,
+ change: changeSV,
end: done
});
- function changeS(p) {
+ function changeSV(p) {
hsv.s(p.x);
hsv.v(1 - p.y);
SV(p.x, p.y);
Please sign in to comment.
Something went wrong with that request. Please try again.