Add colour-interpolate operator

This commit is contained in:
Jeremy Ruston
2024-12-15 18:48:28 +00:00
parent ae1d9f5b86
commit c1e36a1e5f
3 changed files with 71 additions and 0 deletions

View File

@@ -0,0 +1,19 @@
title: Operators/Colour/ColourInterpolate
description: colour-interpolate function
type: text/vnd.tiddlywiki-multiple
tags: [[$:/tags/wiki-test-spec]]
title: Output
\parsermode inline
<$text text={{{ [subfilter{Filter}] }}}/>
+
title: Filter
=[[#5778d8]]
=[[#d85757]]
+[colour-interpolate:oklch[0.2],[0.5],[0.99]join[,]]
+
title: ExpectedResult
oklch(60.08% 0.15344 290.55),oklch(60.956% 0.15699 325.23),oklch(62.386% 0.1628 381.88)