Skip to content

Commit 9b00862

Browse files
authored
Add CDN link
1 parent 82d8435 commit 9b00862

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

README.md

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,24 @@ 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-
## Usage
12+
## Get the library
1313

1414
Add the library to your source code, *after* loading p5 but *before* loading your own code:
1515

16+
### Via CDN
17+
```html
18+
<script src="https://cdn.jsdelivr.net/npm/@davepagurek/[email protected]/p5.Framebuffer.min.js"></script>
19+
```
20+
21+
### Self-hosted
22+
[Download the minified or unminified source code from the releases tab](https://github.com/davepagurek/p5.Framebuffer/releases/), then add it to your HTML:
1623
```html
17-
<script type="text/javascript" src="p5.Framebuffer.js"></script>
24+
<script type="text/javascript" src="p5.Framebuffer.min.js"></script>
1825
```
1926

27+
28+
## Usage
29+
2030
Create a Framebuffer in `setup` and use it in `draw`:
2131

2232
```js

0 commit comments

Comments
 (0)