*
This commit is contained in:
parent
02fe36f264
commit
930f3960c8
16
examples/tools/saturation.lisp
Normal file
16
examples/tools/saturation.lisp
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
(clear)
|
||||||
|
; drag an image
|
||||||
|
(import $path)
|
||||||
|
(def original (copy))
|
||||||
|
(defn update
|
||||||
|
(e)
|
||||||
|
(if
|
||||||
|
(eq e:is-down true)
|
||||||
|
(
|
||||||
|
(paste original)
|
||||||
|
(def val (div e:x 400))
|
||||||
|
(pixels saturation val)
|
||||||
|
(guide (line e:x 0 e:x 900))
|
||||||
|
(fill (text 88 580 40 val) "white"))))
|
||||||
|
; add interaction
|
||||||
|
(on "mouse-move" update)
|
Loading…
x
Reference in New Issue
Block a user