hh at hyperhh.de
Mon Jun 24 08:42:56 EDT 2019
>>> The stack needs LC 9. It also runs in LC 8 but
>>> up to 10 times slower.
The stack creates a color palette from any image.
You set the number of colors (2-256) of the palette.
Such palettes are often used to create "harmonic" designs
of drawings/posters or for creating web pages.
You can see the "quantized" image with that palette, see
The quantized image is computed built-in or by using
LC's "export image with palette" with the computed palette.
via a browser widget. The library is included in the stack.
Download "ImagePalette" from "Sample Stacks" or from
If you have a decent GPU then around 1-2 seconds are
needed for images of medium screen size (1920x1080).
License MIT ( see https://en.wikipedia.org/wiki/MIT_License )
More information about the Use-livecode