G'day Atro, Try the following in a new Tiddler:
<$vars thisSecond=<<now ss>> > <$vars rgbArg1={{{ [<thisSecond>multiply[3]]}}} rgbArg3={{{ [<thisSecond>multiply[5]]}}} > <div style={{{ [[border:25px solid rgb(]addsuffix<rgbArg1>addsuffix[,]addsuffix<rgbArg1>addsuffix[,]addsuffix<rgbArg3>addsuffix[)]] }}}> Some Text </div> </$vars> </$vars> You'll need to do something to re-render the tiddler and see how colour changes over time. (I just wanted a quick way to show how to have dynamic CSS styling using TiddlyWiki filtering. So nothing fancy just for demonstration purposes.) On Tuesday, June 22, 2021 at 8:58:30 AM UTC-3 Atronoush wrote: > > There are some tag cloud tools around (e.g. Eric uses size and Mohammad > use badge). > I like to have tag cloud based on color! > > IDEA > i. a macro to get a number and generate a color, I call it *colgen* > this is easy! in surface plots / contour plots we use color bars! here > different color tables can be used in form of macro or dictionary tiddler > > ii. a variable to calculate the number of tiddlers (e.g using $count) > tagged with say *foo* > > How it works > 1. each time a new tiddler is tagged with foo the variable value is > increased by one > 2. this value is passed to *colgen* macro to generate color > 3. this color is dynamically used for tag > > you can use different color tables/bar for example red for high and blue > for low (rainbow color table), ... > > > ISSUE > Tiddlywiki allow to use macros and transclusion in fields! BUT it seems it > does not allow to change color dynamically! > > > I appreciate to have your idea, solution, codes, ... > > --Atro > -- You received this message because you are subscribed to the Google Groups "TiddlyWiki" group. To unsubscribe from this group and stop receiving emails from it, send an email to tiddlywiki+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/ee7b6163-165e-4942-9761-982e17e91e56n%40googlegroups.com.