(noise-overlay w h)
(noise-overlay w h {:keys [alpha] :or {alpha 80}})
Create transparent image with noise (gaussian).
:alpha
parameter describes transparency (default: 80).
Use with render-noise
.
Create transparent image with noise (gaussian). `:alpha` parameter describes transparency (default: 80). Use with [[render-noise]].
(render-crt-scanlines img)
(render-crt-scanlines img
{:keys [resolution hardpix hardscan mask-dark mask-light
mask-mult]
:or {resolution 6.0
hardpix -4.0
hardscan -12.0
mask-dark 1.0
mask-light 1.0
mask-mult 3.0}})
Create CRT scanlines and rgb patterns. Parameters:
Create CRT scanlines and rgb patterns. Parameters: * resolution - size of the scanlines (default 6.0) * hardpix - horizontal blur, -2.0 soft, -8.0 hard (default -4.0) * hardscan - scanline softness, -4.0 soft, -16.0 hard (default -12.0) * mask-dark - crt mask dark part multiplier 0.25-1.0 (default 1.0, none) * mask-light - crt mask color part multiplier 1.0-1.75 (default 1.0, none) * mask-mult - crt mask pattern shift, 0.0+ (default 3.0, crt grid) Based on https://www.shadertoy.com/view/XsjSzR
(render-noise img)
(render-noise img noise-ovrly)
Render noise on image.
Render noise on image.
(render-rgb-scanlines p)
(render-rgb-scanlines p {:keys [scale] :or {scale 1.6}})
Blurs and renders rgb stripes on the image, returns new image.
Scale parameter (default 1.6) controls amount of blur. Resulting image is sligtly lighter and desaturated.
Correct with normalize filter if necessary.
Blurs and renders rgb stripes on the image, returns new image. Scale parameter (default 1.6) controls amount of blur. Resulting image is sligtly lighter and desaturated. Correct with normalize filter if necessary.
(render-spots img)
(render-spots img spots)
Render spots on image. Returns image.
Render spots on image. Returns image.
(spots-overlay w h)
(spots-overlay w
h
{:keys [alpha intensities] :or {alpha 80 intensities [60 120]}})
Create vector of spotted overlays. Input: spots transparency (default 80), list of intensities (int values from 0 to 255, default [60 120]) and size of overlay.
Create vector of spotted overlays. Input: spots transparency (default 80), list of intensities (int values from 0 to 255, default [60 120]) and size of overlay.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close