Add colour-lighten and colour-darken operators

This commit is contained in:
Jeremy Ruston
2024-10-24 12:01:50 +01:00
parent 96b85edfa2
commit d372729ed0
4 changed files with 98 additions and 7 deletions

View File

@@ -0,0 +1,18 @@
title: Operators/Colour/ColourDarken
description: Darken colour function
type: text/vnd.tiddlywiki-multiple
tags: [[$:/tags/wiki-test-spec]]
title: Output
\parsermode inline
\import [subfilter{$:/core/config/GlobalImportFilter}]
<$text text={{{ [subfilter{Filter}] }}}/>
+
title: Filter
[function[colour],[primary]colour-darken[0.5]]
+
title: ExpectedResult
#0f1d77

View File

@@ -0,0 +1,18 @@
title: Operators/Colour/ColourLighten
description: Lighten colour function
type: text/vnd.tiddlywiki-multiple
tags: [[$:/tags/wiki-test-spec]]
title: Output
\parsermode inline
\import [subfilter{$:/core/config/GlobalImportFilter}]
<$text text={{{ [subfilter{Filter}] }}}/>
+
title: Filter
[function[colour],[primary]colour-lighten[0.5]]
+
title: ExpectedResult
#c6dbff