re cute x clients try this include stdio h include x xlib h include x xutil h display dpy int screen xcolor xclrs xclrp xid cmap int cells i j red green blue got main dpy xopendisplay null screen defaultscreen dpy cells displaycells dpy screen cmap xcreatecolormap dpy rootwindow dpy screen defaultvisual dpy screen xclrs xcolor malloc cells sizeof xclrs xclrp xclrs for i i cells i xclrp pixel i xclrp flags xclrp xquerycolors dpy defaultcolormap dpy screen xclrs cells xstorecolors dpy cmap xclrs cells xinstallcolormap dpy cmap got while got xclrp xclrs got for i i cells i if xclrp red xclrp red got if xclrp green xclrp green got if xclrp blue xclrp blue got xclrp xstorecolors dpy cmap xclrs cells xinstallcolormap dpy cmap got while got xclrp xclrs got for i i cells i if xclrp red xclrp red got if xclrp green xclrp green got if xclrp blue xclrp blue got xclrp xstorecolors dpy cmap xclrs cells xinstallcolormap dpy cmap it will work on any pseudocolor xserver hopefully o o o brain inside o o o o andre beck abpsoft mehl andre beck irs inf tu dresden de o o o
