Skip to content

Unlock custom brushes, natural fill effects and intuitive hatching in p5.js

Update README.md

Alejandro94192ddcdac5
diff --git a/README.md b/README.md
index 7b3a259..3581ebd 100644
--- a/README.md
+++ b/README.md
@@ -459,15 +459,16 @@ The Fill Management section focuses on managing fill properties for shapes, enab
---
-- `brush.bleed(_i, _texture)`
+- `brush.bleed(_i, _texture, _borderIntensity)`
- **Description**: Adjusts the bleed and texture levels for the fill operation, mimicking the behavior of watercolor paints. This function adds a natural and organic feel to digital artwork.
- **Parameters**:
- `_i` (Number): The intensity of the bleed effect, capped at 0.5.
- `_texture` (Number): The texture level of the watercolor effect, ranging from 0 to 1.
+ - `_borderIntensity` (Number): The intensity of the border watercolor effect, ranging from 0 to 1.
- **Usage**:
```javascript
// Set the bleed intensity and texture for a watercolor effect
- brush.bleed(0.3, 0.7);
+ brush.bleed(0.3, 0.7, 0.5);
```
---