Re: [dwm] xicon - dzen-like tool for icons

From: pancake <pancake_AT_youterm.com>
Date: Sun, 1 Jul 2007 15:54:57 +0200

On Sun, 1 Jul 2007 11:47:29 +0200
Denis Grelich <denisg_AT_suckless.org> wrote:

> On Sun, 1 Jul 2007 06:29:18 +0200
> pancake <pancake_AT_youterm.com> wrote:
> > Images are composed by '.' and 'X' or '0' and '1' in ascii one row
> > per line file:
> >
> > $ cat x
> > .... .... .... ....
> > .... .... .... ....
> > ..XX .... .... XX..
> > (...)
> > $ ./icon < x
> > 0000 0000 300c 1818 0c30 0660 03c0 03c0 0660 0c30 1818 300c 0000
>
> Why, o why, inventing yet another image format. What's wrong with X11's
> (de facto) native pixmap format, XPM (_X_ Pixmap)? There are already a
> sea of tools to handle it, it's an ASCII format and is simple enough
> too. X11 even comes with a library for easy usage of the format.

For different reasons:
 - I was bored
 - I want a one line

> http://koala.ilog.fr/lehors/xpm.html
>
> An example:
>
> /* XPM */
> static char * roundb_xpm[] = {
> /* width height ncolors cpp [x_hot y_hot] */
> "13 13 5 2 7 7",
> /* colors */
> " s none m none c none",
> ". s topShadowColor m white c lightblue",
> "X s iconColor1 m black c black",
> "o s bottomShadowColor m black c #646464646464",
> "O s selectColor m white c red",
> /* pixels */
> " ",
> " . . . ",
> " . . X X X o o ",
> " . X X X X X X X o ",
> " . X X X X X X X o ",
> " . X X X X O X X X X o ",
> " . X X X O O O X X X o ",
> " . X X X X O X X X X o ",
> " . X X X X X X X o ",
> " . X X X X X X X o ",
> " o o X X X o o ",
> " o o o ",
> " "
> };
>
> Greetings,
> Denis
>

  --pancake
Received on Sun Jul 01 2007 - 15:55:00 UTC

This archive was generated by hypermail 2.2.0 : Sun Jul 13 2008 - 14:45:37 UTC