mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2026-09-03 08:38:54 +00:00
Fix colour-interpolate with missing colours
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user