First prototype

To start following through with my commitment of prototyping I set for myself, I put together a TreeMap widget this weekend. After seeing Miguel's in Moonlight, I had to write one too. Turns out they are pretty fun. It uses cairo and pango for drawing.

Implemented in pygtk here and in C# here.

And Youtube Video Example or screenshot.

Comments (5)

  1. tm wrote:

    Thanks for sharing the prototype – there is not so much pango/cairo action going on and every functional piece of code teaches something :)

    You might find of interest that python actually has built in function to convert between rgb and hsv. Google for “python colorsys”! :)

    Monday, August 3, 2009 at 6:09 pm #
  2. chergert wrote:

    @tm

    i *knew* there had to be a better way to do the color conversions :-)

    Monday, August 3, 2009 at 8:07 pm #
  3. john wrote:

    Hi christian,
    This is really a nice widget. Unfortunately the C# archive of the code is broken. Can you update it?
    Thanks,
    john

    Friday, August 14, 2009 at 3:40 pm #
  4. chergert wrote:

    @john

    quite strange, i guess your browser is maybe decompressing the gz for you. wget/curl seems to work though.

    alternatively, i just pushed the code to my github tree:

    http://github.com/chergert/custom-gtk-widgets/tree/master

    I’ll take a look at my http config and see if i can fix that though.

    Saturday, August 15, 2009 at 7:50 am #
  5. john wrote:

    Thanks! I got the code from the git repository.
    John

    Saturday, August 15, 2009 at 1:30 pm #