Tutorial of using Cairo in Ruby with Glimmer DSL for GTK:
Below is a Glimmer DSL for GTK rewriting of Mohit's tutorial using the much simpler and more maintainable Glimmer DSL for GTK declarative Cairo syntax (instead of the default RCairo imperative syntax).
Tetris Screenshot:
Here is a screenshot of Tetris, written with declarative Cairo code using Glimmer DSL for GTK.
Tetris Glimmer DSL for GTK Code:
Cairo usage is mostly the Glimmer-only `square` and `polygon` shape constructions (not available in standard RCairo).
Happy Glimmering!
No comments:
Post a Comment