Saturday, March 13, 2021

Glimmer Gets Its First Official Custom Shape Gems

Glimmer DSL for SWT recently added support for Custom Shapes, which are reusable graphical constructs akin of Custom Widgets (reusable widget constructs). Glimmer DSL for SWT just got its first official custom shape gemsglimmer-cp-bevel, providing the `bevel` keyword, and glimmer-cp-stickfigure, providing the `stick_figure` keyword. They are covered below.

Bevel 

This represents a bevel square custom shape that can have various colors and sizes, and you only need to set its base color for it to figure out the rest. It is customizable via its API.


Currently used in Glimmer Tetris.


Glimmer GUI DSL Code Example:


Tetris icon image produced:


Stick Figure 

This represents a stick figure custom shape that can have colors and sizes, and you only need to set its base size for it to figure out the rest for the stick figure head, torso, arms, and legs. It is customizable via its API.

Currently used in the upcoming DCR project


Glimmer GUI DSL code for Hello, Stick Figure! Sample:

Hello, Stick Figure!

Happy Glimmering!

No comments: