![ruby download image ruby download image](https://atlas-content-cdn.pixelsquid.com/stock-images/shield-step-cut-ruby-3A8mZ62-600.jpg)
![ruby download image ruby download image](https://static.emulatorgames.net/images/gameboy-advance/pokemon-ruby-version-v1-1.jpg)
Ruby/Tk includes support for GIF and PPM/PNM images. This will produce the following result − Ruby/Tk Images $resultsVar.value = 'New value to display' MyFont = TkFont.new("family" => 'Helvetica', "size" => 20, "weight" => 'bold') "#3FF" or "#FF016A".įinally, Tk recognizes the set of color names defined by X11 normally these are not used, except for very common ones such as "red", "black", etc.įor themed Tk widgets, colors are often used in defining styles that are applied to widgets, rather than applying the color to a widget directly. You can also specify fonts via RGB, like in HTML, e.g. Like with fonts, both Mac and Windows specifies a large number of system-specific color names (see the reference). The system will provide the right colors for most things.
#Ruby download image full
Full details can be found in the colors command reference. There are various ways to specify colors. You can specify one or more standard option separated by comma. If you are willing to create your new font using different family and font type, then here is a simple syntax to create a font − You can use any of these fonts in the following way − The font typically used for column headings in lists and tables.Ī font for window and dialog caption bars.Ī smaller caption font for subwindows or tool dialogs The default for all GUI items not otherwise specified. There is already a default list of fonts, which can be used for different requirements − Sr.No. Several Tk widgets, such as the label, text, and canvas, allow you to specify the fonts used to display text, typically via a font configuration option.