*
This commit is contained in:
parent
b25c03af52
commit
10fc80fb14
@ -184,19 +184,19 @@ Effects which use the surrounding pixels, or convolution matrix, are used with t
|
|||||||
|
|
||||||
```lisp
|
```lisp
|
||||||
(open $path)
|
(open $path)
|
||||||
(convolve sharpen $rect)
|
(convolve (sharpen) $rect)
|
||||||
```
|
```
|
||||||
|
|
||||||
Custom convolve kernels can also be created like this:
|
Custom convolve kernels can also be created like this:
|
||||||
|
|
||||||
```lisp
|
```lisp
|
||||||
(open $path)
|
(open $path)
|
||||||
(def blur
|
(def (blur)
|
||||||
(
|
(
|
||||||
(-1 -1 -1)
|
(-1 -1 -1)
|
||||||
(-1 5 -1)
|
(-1 5 -1)
|
||||||
(-1 -1 -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"/>
|
<img src="https://raw.githubusercontent.com/hundredrabbits/100r.co/master/media/content/characters/ronin.idle.png" width="300"/>
|
||||||
|
@ -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)
|
|
Loading…
x
Reference in New Issue
Block a user