added sharpen control
This commit is contained in:
parent
696b6f489b
commit
3035b44e85
1 changed files with 11 additions and 0 deletions
|
@ -181,6 +181,16 @@ function ComicBook(id, srcs, opts) {
|
|||
ComicBook.prototype.enhance.brightness({ contrast: ui.value });
|
||||
}
|
||||
}))
|
||||
.append("<label>sharpen</label>")
|
||||
.append($("<div id='sharpen'></div>").slider({
|
||||
value: 0,
|
||||
step: 0.1,
|
||||
min: 0,
|
||||
max: 1,
|
||||
slide: function(event, ui) {
|
||||
ComicBook.prototype.enhance.sharpen({ amount: ui.value });
|
||||
}
|
||||
}))
|
||||
.append("<input type='checkbox' id='desaturate' /> <label for='desaturate'>Desaturate</label>")
|
||||
.append("<button id='reset' style='display:block'>reset</button>")
|
||||
.css({
|
||||
|
@ -231,6 +241,7 @@ function ComicBook(id, srcs, opts) {
|
|||
// TODO: improve performance here.
|
||||
$("#brightness").slider("value", 0)
|
||||
$("#saturation").slider("value", 0);
|
||||
$("#sharpen").slider("value", 0);
|
||||
var desaturate = $("#desaturate");
|
||||
desaturate.attr("checked", !desaturate.attr("checked"));
|
||||
ComicBook.prototype.enhance.reset();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue