1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2025-04-16 15:53:14 +00:00

Fix colour-interpolate with missing colours

This commit is contained in:
Jeremy Ruston 2025-03-07 16:23:16 +00:00
parent d42e3d36bc
commit 4c95ae546f

View File

@ -99,8 +99,11 @@ exports["colour-interpolate"] = function(source,operator,options) {
return [];
}
var colourA = $tw.utils.parseCSSColorObject(operator.operands[0]),
colourB = $tw.utils.parseCSSColorObject(operator.operands[1]),
rangefn = colourA.range(colourB,{space: space, hue: hueAdjuster});
colourB = $tw.utils.parseCSSColorObject(operator.operands[1]);
if(!colourA || !colourB) {
return [];
}
var rangefn = colourA.range(colourB,{space: space, hue: hueAdjuster});
// Cycle through the weights
var results = [];
source(function(tiddler,title) {