Skip to content

Commit

Permalink
CIE LAB 65
Browse files Browse the repository at this point in the history
  • Loading branch information
vipertechofficial committed Jul 9, 2024
1 parent 4e64ff5 commit 330ba60
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 15 deletions.
2 changes: 1 addition & 1 deletion client/chunk_11.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion client/chunk_12.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion client/chunk_8.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion client/chunk_9.min.js

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions service-worker.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,10 @@ var LOAD_FILES_USEFUL = ["/src/fonts/normative/index.css"].concat(["illusion.jpg
var LOAD_FILES_STATIC = ["sfx/md/hero_decorative-celebration-02", "sfx/md/navigation_selection-complete-celebration", "sfx/md/navigation_transition-left", "sfx/md/state-change_confirm-down", "sfx/md/ui_lock", "sfx/md/ui_unlock", "sfx/md/ui_scan", "sfx/md/alert_high-intensity", "sfx/md/navigation_transition-right", "voice/cn/accessing_memory", "voice/cn/complete", "voice/cn/please_wait", "voice/cn/data_upload", "voice/cn/processing", "voice/cn/enhanced", "voice/cn/rewriting_deep_layer_protocols", "voice/cn/vision_activated", "voice/cn/vision_deactivated", "voice/cn/filtering", "music/redeclipse/track_09"].map(F_SND).concat(["presentation", "tutorial", "create", "enhanced", "pixelated", "upload", "share1", "joke1", "create", "enhanced", "pixelated", "presentation", "presentation2", "sponsors", "tutorial", "upload", "labintro", "share2", "share3", "share4", "share5", "share6", "share7", "joke2", "joke3", "joke4", "joke5", "joke6", "joke7", "joke8", "joke9", "joke10", "joke11"].map(F_VID));

// Cache names
var REQUIRED_CACHE = "unless-update-cache-v1068-required";
var USEFUL_CACHE = "unless-update-cache-v1068-useful";
var STATIC_CACHE = "unless-update-cache-v1068-static";
var OTHER_CACHE = "unless-update-cache-v1068-other";
var REQUIRED_CACHE = "unless-update-cache-v1069-required";
var USEFUL_CACHE = "unless-update-cache-v1069-useful";
var STATIC_CACHE = "unless-update-cache-v1069-static";
var OTHER_CACHE = "unless-update-cache-v1069-other";

// Regular expressions for chunk matching
var MAIN_CHILD_CHUNK_REGEX = /chunk_(main_[a-z0-9]+)\.min\.js$/i;
Expand Down
15 changes: 8 additions & 7 deletions src/js/utils/quantimat/QuantiMat.js
Original file line number Diff line number Diff line change
Expand Up @@ -486,9 +486,9 @@ QuantiMat.prototype.process_threshold = function(t) {
var color_n_in_cluster = 0;
var threshold = 0;

var baseFactor = .9;
var lowUsedFactor = .05; // Adjust this value to control sensitivity to usage percent differences
var distanceUsageFactor = .05; // Adjust this value to emphasize the effect of one color being more dominant
var baseFactor = .8;
var lowUsedFactor = .2; // Adjust this value to control sensitivity to usage percent differences
var distanceUsageFactor = .0; // Adjust this value to emphasize the effect of one color being more dominant
var totalFactor = baseFactor + lowUsedFactor + distanceUsageFactor;

weighted_threshold_skin_skin = fr(weighted_threshold * SAME_SKIN_COLOR_MATCH_MULTIPLY);
Expand Down Expand Up @@ -604,11 +604,12 @@ QuantiMat.prototype.run = function() {
this.clusterize();
return this;
}
while (this.new_pxl_colors_length >= this.best_color_number) {

t = t + (this.new_pxl_colors_length > 60000 ? 12: this.new_pxl_colors_length > 32000 ? 8: this.new_pxl_colors_length > 16000 ? 4: this.new_pxl_colors_length > 8192 ? 3: this.new_pxl_colors_length > 4096 ? 2: 1) | 0;
while (this.new_pxl_colors_length > this.best_color_number && t < 100) {

if(this.process_threshold(t|0)) {
t++;

if(this.process_threshold(t|0) > 0) {
this.deduplicate();
this.clusterize();
}
Expand Down Expand Up @@ -819,7 +820,7 @@ var QuantiMatGlobal = function(
original_color_n;

if(number_of_color === "auto") {
number_of_color = detectIdealColorCount(image_data.data, 16, 64);
number_of_color = detectIdealColorCount(image_data.data, 32, 96);
}

if(number_of_color >= original_color_n) {
Expand Down

0 comments on commit 330ba60

Please sign in to comment.