This commit is contained in:
neauoire 2019-11-03 21:57:21 -05:00
parent b25c03af52
commit 10fc80fb14
2 changed files with 3 additions and 13 deletions

View File

@ -184,19 +184,19 @@ Effects which use the surrounding pixels, or convolution matrix, are used with t
```lisp
(open $path)
(convolve sharpen $rect)
(convolve (sharpen) $rect)
```
Custom convolve kernels can also be created like this:
```lisp
(open $path)
(def blur
(def (blur)
(
(-1 -1 -1)
(-1 5 -1)
(-1 -1 -1)))
(convolve blur)
(convolve (blur))
```
<img src="https://raw.githubusercontent.com/hundredrabbits/100r.co/master/media/content/characters/ronin.idle.png" width="300"/>

View File

@ -1,10 +0,0 @@
(clear)
; drag an image on the window
(open $path)
;
(convolve
(rect 100 100 400 400) edge)
(convolve
(rect 300 300 400 400) sharpen)
(convolve
(rect 500 500 400 400) blur)