mirror of
https://github.com/javl/image2cpp.git
synced 2026-07-27 19:56:07 +00:00
fix typo breaking export
This commit is contained in:
+1
-1
@@ -513,7 +513,7 @@
|
||||
for(var index = 0; index < data.length; index += 4){
|
||||
// Get the average of the RGB (we ignore A)
|
||||
var avg = (data[index] + data[index + 1] + data[index + 2]) / 3;
|
||||
if(avg > settings["thresholdThreshold"]){
|
||||
if(avg > settings["ditheringThreshold"]){
|
||||
number += Math.pow(2, byteIndex);
|
||||
}
|
||||
byteIndex--;
|
||||
|
||||
Reference in New Issue
Block a user