Added Posterize effect
This commit is contained in:
parent
9d466ff5aa
commit
02a3187668
13
PRELUDE.md
13
PRELUDE.md
@ -30,4 +30,17 @@ Use: `(pixels erase-color (255 0 0))`.
|
|||||||
(eq a:0 b:0)
|
(eq a:0 b:0)
|
||||||
(eq a:1 b:1)
|
(eq a:1 b:1)
|
||||||
(eq a:2 b:2)) 0 255)))
|
(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))
|
||||||
```
|
```
|
Loading…
x
Reference in New Issue
Block a user