A friend of mine shared a script with me, which takes a set of R-G-B 
values, a radius and an x/y coordinate, and generates a graphic. I think 
his function could be used to generate "tiles" -- say, 25px by 25px 
generated images that could be put on tiddlers, depending on tag/field 
values.

I embedded the script as an iframe here 
<https://designwritestudio.github.io/experimental/hand-tagged-graphics.html?i=124.87379701700996&x=176.6728727371631&y=104.28485949713784&r=64&g=178&b=242&ri=1.6731564374861718&gi=5.41945679039433&bi=17.160426734134074&rand=1>

Of course, I'm hoping to embed the function in tiddlywiki so I could use a 
macro <<showtile  i=124.87379701700996 x=176.6728727371631 
y=104.28485949713784 r=64 g=178 b=242 ri=1.6731564374861718 
gi=5.41945679039433 bi=17.160426734134074 width=25 height=25>> to generate 
a 25x25 image that looks like this 
<https://designwritestudio.github.io/experimental/hand-tagged-graphics.html?i=124.87379701700996&x=176.6728727371631&y=104.28485949713784&r=64&g=178&b=242&ri=1.6731564374861718&gi=5.41945679039433&bi=17.160426734134074&rand=1>
 

We could set those values based on fields/tags, and generate visual cues to 
the tags of a tiddler. For example, given a field "Location" value=1 x=25 
y=25; value=2 x=150 y=25; value=3 x=150 y=25; value=4 x=150 y=150. Select 3 
different R-G-B value sets (100,200,300 ; 200,300,100; 300,100,200)  and 
combine them to yield 4x3=12 different "tiles" that could be associated 
with tiddlers having appropriate field values.

In a multi-tagged environment, this could be an interesting visual cue. But 
-- I don't really know how to move is javascript into a tiddlywiki 
function. It might be trivial, but insurmountable for me.If anyone wanted 
to hack on it, that would be great, and might be interesting.

//steve.

-- 
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 post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/a6afb044-72d9-4394-aec3-7fd309d27532%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to