Skip to content

Commit 4f72598

Browse files
authored
Add blur examples to readme
1 parent b218979 commit 4f72598

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ A Framebuffer is kind of like a `p5.Graphics`: it lets you draw to a canvas, and
99

1010
Read more about the motivation for this and how focal blur shaders work in <a href="https://www.davepagurek.com/blog/depth-of-field/">this blog post on the subject.</a>
1111

12+
![image](https://user-images.githubusercontent.com/5315059/172021218-b50f6693-40a6-49a1-99af-8dd9d73f00eb.png)
13+
<small><em>Above: a screenshot from [a sketch](https://openprocessing.org/sketch/1590159) using p5.Framebuffer to blur out-of-focus areas</em></small>
14+
1215
## Get the library
1316

1417
Add the library to your source code, *after* loading p5 but *before* loading your own code:
@@ -63,9 +66,14 @@ Notes:
6366
## Examples
6467
In this repo:
6568
- `examples/simple`: Drawing both the depth and color buffers of a rotating cube
69+
- Live: https://davepagurek.github.io/p5.Framebuffer/examples/simple
6670
- On the p5 editor: https://editor.p5js.org/davepagurek/sketches/cmAwY6d5W
71+
- `examples/blur`: Using the depth map to blur out-of-focus parts of the sketch
72+
- Live: https://davepagurek.github.io/p5.Framebuffer/examples/blur
6773

6874
External:
75+
- <a href="https://openprocessing.org/sketch/1590159">Train Knots</a>
76+
- Uses the depth buffer in a focal blur shader
6977
- <a href="https://openprocessing.org/sketch/1460113">Modern Vampires of the City</a>
7078
- Uses the depth buffer to create a fog effect
7179
- <a href="https://openprocessing.org/sketch/1418669">Descent</a>

0 commit comments

Comments
 (0)