Skip to content

Commit e1e7383

Browse files
author
Tim Lehmann
authored
docs: updated README with new parameters (whynotmake-it#56)
1 parent 2ee6684 commit e1e7383

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

packages/liquid_glass_renderer/README.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ A Flutter package for creating a stunning "liquid glass" or "frosted glass" effe
2727
As this is a pre-release, there are a few things to keep in mind:
2828

2929
- **Only works on Impeller**, so Web, Windows, and Linux are entirely unsupported for now
30-
- **Maximum of three shapes** can be blended in a `LiquidGlassLayer`.
30+
- **Maximum of 64 shapes** can be blended in a `LiquidGlassLayer`, and performance will degrade significantly with the more shapes you add in the same layer.
3131
- **Blur** introduces artifacts when blending shapes, and looks suboptimal for `Glassify`. Upvote [this issue](https://github.com/flutter/flutter/issues/170820) to get that fixed.
3232

3333
## Acknowledgements
@@ -243,6 +243,11 @@ Here's a breakdown of the key settings:
243243
- `lightAngle`, `lightIntensity`: Control the direction and brightness of the virtual light source, creating highlights.
244244
- `ambientStrength`: The intensity of ambient light.
245245
- `outlineIntensity`: The visibility of the glass outline.
246+
- `saturation`: Adjusts the color saturation of background pixels visible through the glass (1.0 = no change, <1.0 = desaturated, >1.0 = more saturated).
247+
- `lightness`: Adjusts the brightness of background pixels visible through the glass (1.0 = no change, <1.0 = darker, >1.0 = brighter).
248+
249+
250+
Saturation and lightness can be combined with blur to achieve an Apple-like look.
246251

247252
### Adding Blur
248253

0 commit comments

Comments
 (0)