Skip to content

Commit a090b78

Browse files
author
Affolter Matias
committed
Changed min color threshold and quanitmat settings
1 parent ba1b8c7 commit a090b78

File tree

7 files changed

+17
-13
lines changed

7 files changed

+17
-13
lines changed

��client/chunk_26.min.js‎

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎client/chunk_3.min.js‎

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎client/chunk_5.min.js‎

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎service-worker.js‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
"use strict";
2-
var REQUIRED_CACHE = "unless-update-cache-v546-required";
3-
var USEFUL_CACHE = "unless-update-cache-v546-useful";
4-
var STATIC_CACHE = "unless-update-cache-v546-static";
2+
var REQUIRED_CACHE = "unless-update-cache-v547-required";
3+
var USEFUL_CACHE = "unless-update-cache-v547-useful";
4+
var STATIC_CACHE = "unless-update-cache-v547-static";
55
var MAIN_CHILD_CHUNK_REGEX = /chunk_(main_[a-z0-9]+)\.min\.js$/i;
66
var CHILD_CHUNK_REGEX = /chunk_([0-9]+)\.min\.js$/i;
77

‎src/js/components/PixelToolboxSwipeableViews.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -436,7 +436,7 @@ class PixelToolboxSwipeableViews extends React.PureComponent {
436436
let props_override = {};
437437
let layers_colors_max = 0;
438438
Array.from(new_props.layers).forEach(function(l){ if(layers_colors_max < parseInt(l.number_of_colors)) { layers_colors_max = parseInt(l.number_of_colors);}});
439-
const too_much_colors_no_vector = Boolean(layers_colors_max >= 128);
439+
const too_much_colors_no_vector = Boolean(layers_colors_max > 256);
440440

441441
const view_name_changed = Boolean(view_name_index !== new_props.view_name_index);
442442
const something_changed_in_view = Boolean(Boolean(new_props.should_update || should_update) && Boolean((

‎src/js/components/canvaspixels/utils/ReducePalette.js‎

Lines changed: 7 additions & 3 deletions
Large diffs are not rendered by default.

‎src/js/utils/quantimat/QuantiMat.js‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,9 @@ SOFTWARE.
2424
*/
2525

2626
// Inspired by https://en.wikipedia.org/wiki/Rec._709
27-
var PR = 0.3125, // +0.1
28-
PG = 0.5154, // -0.2
29-
PB = 0.1721, // +0.1
27+
var PR = 0.45,
28+
PG = 0.30,
29+
PB = 0.25,
3030
PA = 1.0000;
3131

3232
var RD = 255,

0 commit comments

Comments
 (0)