This tutorial is outdated: it refers to version 0.4 of clutter that now is VERY old.
Last time we have seen how to draw the (maybe) most basic shape of clutter: the rectangles. We also positioned them together in the stage, and said (in part one) that the stage is a special kind of container.
Today it’s time to explain better what groups are and how to use them, so I’ll introduce to you the ClutterGroup and the ClutterHBox/ClutterVBox.
(Continue reading…)
This tutorial is outdated: it refers to version 0.4 of clutter that now is VERY old.
Last time we learned how to have our first stage drawn, so now it’s time to begin to insert something into that stage.
Let do a summary of what we are going to do in this “lesson”:
- change the stage’s color
- add a rectangle to the stage
- add another rectangle to the stage
(Continue reading…)
This tutorial is outdated: it refers to version 0.4 of clutter that now is VERY old.
This tutorial is the first of a series that will try to learn to you how to use clutter with the help of python, or better: a tutorial about pyclutter.
But before to begin, it’s better to give an overview on what clutter is. Citing the clutter’s homepage:
Clutter is an open source software library for creating fast, visually rich and animated graphical user interfaces. Clutter uses OpenGL (and optionally OpenGL ES) for rendering but with an API which hides the underlying GL complexity from the developer. The Clutter API is intended to be easy to use, efficient and flexible.
That said, while clutter is the main library (written in C), there are bindings to other languages like perl, vala, ruby, C# and python. The python binding is commonly named pyclutter.
The requirements needed to better follow the tutorial are:
- a good python knowledge (of course); if you don’t know it, you can always learn it by following the excellent dive into python
- some basic knowledge of how the GTK environment works; although it isn’t really needed since we won’t use GTK functions, it is very useful since, under a certain point of view, clutter inherits many things from GTK
- clutter 0.4.2 or newer
(Continue reading…)