In response to @JackPD wishing to use various font weights for canvas labels, while not really possible it occured to me that because labels are transparent, using multiple canvases offers a variety of possibilities.
Here are some ideas
font-tricks.pd
-
Custom Fonts
-
Nice
-
@Balwyn said:
In response to @JackPD wishing to use various font weights for canvas labels, while not really possible it occured to me that because labels are transparent, using multiple canvases offers a variety of possibilities.
Here are some ideas
font-tricks.pd
Wow, that´s amazing, how do you found all these commands and attributes? Also, seeing that you are really advanced in this topic, is it possible to make a canvas with a color gradient or is it too much? I would like to apply a gradient background to the label if it´s possible.
Thanks for sharing this information, it really opens the possibilites on improving GUIs.
-
You cannot create a canvas with a gradient background.
You can however create a gradient with many canvases
font-tricks.pd
This was created with 60 canvases
You can find the command and attributes for all GUI objects by right clicking and selecting Help
then opening [pd edit]
-
you can also get quite decent effect with just 20 canvases
-
The fact that when dynamically creating canvases, the normal way of setting rgb colour doesn't seem to work (in Win10 at least).
This puzzled me, so I checked the dialog.iemgui.tcl and found the default color scheme by Mary Ann Benedetto were set with hex values in the format of
"#E3C6FF" .
So using that I've managed to set the canvas colour dynamically.
However it doesn't work with PurrData. So I'll adapt this for PurrData next.
gradient-creator.pd
-
Ok, so Purr Data and Pd-Extended both need a second loop to set the canvas colours after instantiation
gradient-creator-purr.pd