From 846b40a6991ad1f1482ac123e901d2fcb83c4671 Mon Sep 17 00:00:00 2001 From: Damian Schneider Date: Sat, 25 Apr 2026 23:17:21 +0200 Subject: [PATCH] move pixelforge json list and cpt city palettes to wled repo also removed commented code --- wled00/data/cpal/cpal.htm | 14 ++------------ wled00/data/pixelforge/pixelforge.htm | 4 ++-- 2 files changed, 4 insertions(+), 14 deletions(-) diff --git a/wled00/data/cpal/cpal.htm b/wled00/data/cpal/cpal.htm index 7c3ca44ac7..b5abad054e 100644 --- a/wled00/data/cpal/cpal.htm +++ b/wled00/data/cpal/cpal.htm @@ -5,7 +5,7 @@ WLED Palette Editor @@ -331,17 +331,7 @@ }); draw(); } -/* - function rndPal() { - gr.innerHTML = ''; - addMk(0, rndHex(), 1); - const cnt = Math.floor(Math.random() * 3) + 2, pos = new Set(); - while (pos.size < cnt) pos.add(Math.floor(Math.random() * 254) + 1); - [...pos].sort((a,b)=>a-b).forEach(t => addMk(t, rndHex())); - addMk(255, rndHex(), 1); - }*/ - // convert hsl to hex using canvas function hslToHex(h, s, l) { let ctx = cE("canvas").getContext("2d"); @@ -594,7 +584,7 @@ // download external palettes, these were hand picked from cpt-city (http://seaviewsensing.com/pub/cpt-city/) // all palettes are licensed "free to use", converted to WLED JSON format by @dedehai function fetchExt() { - fetch('https://dedehai.github.io/cpt_city_selection.json') + fetch('https://wled.github.io/wled-web-tools/cpt_city_selection.json') .then(r => { if (!r.ok) throw new Error(); return r.json(); }) .then(data => { try { localStorage.setItem('wledCptCityJson', JSON.stringify(data)); } catch(e) {} diff --git a/wled00/data/pixelforge/pixelforge.htm b/wled00/data/pixelforge/pixelforge.htm index b0c5f2df67..e8fb27b674 100644 --- a/wled00/data/pixelforge/pixelforge.htm +++ b/wled00/data/pixelforge/pixelforge.htm @@ -424,7 +424,7 @@

Custom Fonts

const classics=['console_font_4x6.wbf','console_font_5x12.wbf','console_font_5x8.wbf','console_font_6x8.wbf','console_font_7x9.wbf']; // classic WLED fonts list let pT = []; // local tools list from JSON let wv = [0, 0]; // wled version [major, minor], updated in fsMem(), used to check tool compatibility -const remoteURL = 'https://dedehai.github.io/pftools.json'; // Change to your actual repo +const remoteURL = 'https://wled.github.io/wled-web-tools/pftools.json'; // tools list const toolsjson = 'pftools.json'; // note: the pftools.json must use major.minor for tool versions (e.g. 0.95 or 1.1), otherwise the update check won't work // also the code assumes that the tool url points to a gz file @@ -498,7 +498,7 @@

Custom Fonts

}).catch(console.error); } -/* which seg is showing image fx 53 */ +/* which seg is showing image fx (ID 53) */ function curImgSeg(){ const sel=getId('seg'); for(let i=0;i