Perfect Fifth

F# Fable bindings for p5js, with some functional sugar on top.

filter()

These examples demonstrate the translation from p5js to F#. For more information on the function itself, read the documentation on p5js.org.

Loading...
Copy
module P5Reference.Image.Filter0
open P5.Core
open P5.Image
let preload p5 = loadImage p5 "assets/bricks.jpg"
let draw p5 img =
image p5 img 0 0
filter p5 (Threshold 0.5)
let run node = displayWithPreload node preload draw