https://scrawl-v8.rikweb.org.uk/demo/filters-027.html Scrawl-canvas v8 - Filters test 027 Parameters for: reducePalette filter To change image, drag-and-drop an image file over the canvas Predefined palette [black-white ] String of colors [ ] Commonest colors [2 ] Min color distance [1000 ] Use LAB for palette distance [false] Random seed [some-random-string-o] Use bluenoise [false] Opacity [1 ] Memoize filter [false] Test purpose * Create a test Picture entity * Create a reducePalette filter and apply it to the test entity * Update filter attributes and observe the effect they have on the entity Note that this is a resource-intensive filter. Memoization is strongly advised! Known issue: Filter memoization will, sometimes, kill Safari-based browsers for as-yet-unknown reasons - see demo Filters-001 for details. For now, if Scrawl-canvas detects that the user is viewing the canvas in a Safari-based browser, it will ignore requests to memoize filters. Touch test: not required Annotated code [iris]