Added Posterize effect
This commit is contained in:
parent
9d466ff5aa
commit
02a3187668
13
PRELUDE.md
13
PRELUDE.md
@ -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))
|
||||
```
|
Loading…
x
Reference in New Issue
Block a user