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:
parent
d42e3d36bc
commit
4c95ae546f
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user