Added Posterize effect

This commit is contained in:
Devine Lu Linvega 2019-08-05 07:23:48 +09:00
parent 9d466ff5aa
commit 02a3187668

View File

@ -31,3 +31,16 @@ Use: `(pixels erase-color (255 0 0))`.
(eq a:1 b:1)
(eq a:2 b:2)) 0 255)))
```
### Posterize
Use: `(pixels posterize 40)`.
```
(defn posterize
(a q)
(
(step a:0 q)
(step a:1 q)
(step a:2 q) a:3))
```