Lets correct my previous post! It seems the color is changed using
<$button> Set Color <$action-setfield $tiddler=testc $field=color $value=rgb(255,0,0)/> </$button> But as the color field shows a color picker, it seems the color picker does not update! Best wishes Mohammad On Tue, Jun 22, 2021 at 11:23 PM Mohammad Rahmani < [email protected]> wrote: > > > > On Tue, Jun 22, 2021 at 4:28 PM Atronoush <[email protected]> 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 think this is a bug! But maybe Jeremy or other developers can explain! > BUT the below code does not work for me! > > <$button> Set Color > <$action-setfield $tiddler=testc $field=color $value=rgb(255,0,0)/> > </$button> > > or > <$button> Set Color > <$action-setfield $tiddler=testc $field=color $value="yellow"/> > </$button> > >> >> >> 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 [email protected]. >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/tiddlywiki/8dfb1056-4081-4b77-8d82-18ad9bda7e42n%40googlegroups.com >> <https://groups.google.com/d/msgid/tiddlywiki/8dfb1056-4081-4b77-8d82-18ad9bda7e42n%40googlegroups.com?utm_medium=email&utm_source=footer> >> . >> > -- 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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/CAAV1gMB%2Bc%2BFV9dKdm-NfLBNTsCD6BWvraDRcOkrTpYPApmwq9A%40mail.gmail.com.

