mirror of
https://github.com/javl/image2cpp.git
synced 2026-07-28 04:05:35 +00:00
fix: remove duplicate function, closing #39
This commit is contained in:
-14
@@ -685,20 +685,6 @@
|
||||
}
|
||||
}
|
||||
|
||||
function updateDrawMode(elm) {
|
||||
var note = document.getElementById("note1bit");
|
||||
if(elm.value == "horizontal1bit" || elm.value == "vertical1bit") {
|
||||
note.style.display = "block";
|
||||
} else {
|
||||
note.style.display = "none";
|
||||
}
|
||||
|
||||
var conversionFunction = ConversionFunctions[elm.value];
|
||||
if(conversionFunction) {
|
||||
settings.conversionFunction = conversionFunction;
|
||||
}
|
||||
}
|
||||
|
||||
// Make the canvas black and white
|
||||
function blackAndWhite(canvas, ctx){
|
||||
var imageData = ctx.getImageData(0,0,canvas.width, canvas.height);
|
||||
|
||||
Reference in New Issue
Block a user