Contents page

Palette Editor


    This is a general purpose color palette editor. It can be used on any Intuition Screen. Simply call it with a pointer to your Screen (or NULL for WorkBench), X and Y offsets, and a scale factor, and it will put up a requester with the proper array of colors and let the user edit them.

    EditColors(Screen,X,Y,Scale);

    It's a nice editor. Colors can be selected by red, green, and blue values, orby hue, saturation, and intensity. Knobs are used for all of these (by the way, this is a good demo of what knobs can do.)