Skip to content

Commit 99e92dc

Browse files
committed
Document density-based opacity encoding
1 parent 8b9f9db commit 99e92dc

2 files changed

Lines changed: 11 additions & 0 deletions

File tree

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
## Next
22

3+
## v0.18.0
4+
5+
- Add density-based dynamic point opacity via `opacityBy: 'density'`. See
6+
[dynamic-opacity.html](https://flekschas.github.io/regl-scatterplot/dynamic-opacity.html) for an example.
7+
38
## v0.17.1
49

510
- Add [`scatterplot.export`](README.md#scatterplot.export) for exporting the current view as pixels.

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -451,6 +451,12 @@ backwards compatibility), `value1`, `valueA`, `valueZ`, or `z`. To reference
451451
the forth component use `value` (only for backwards compatibility), `value2`,
452452
`valueB`, `valueW`, or `w`.
453453

454+
**Density-based opacity encoding:** In addition, the opacity can dynamically be
455+
set based on the point density and zoom level via `opacityBy: 'density'`. As an
456+
example go to [dynamic-opacity.html](https://flekschas.github.io/regl-scatterplot/dynamic-opacity.html).
457+
The implementation is an extension of [Ricky Reusser's awesome notebook](https://observablehq.com/@rreusser/selecting-the-right-opacity-for-2d-point-clouds).
458+
Huuuge kudos Ricky! 🙇‍♂️
459+
454460
<a name="property-point-conntection-by" href="#property-point-conntection-by">#</a> <b>pointConnectionColorBy, pointConnectionOpacityBy, and pointConnectionSizeBy:</b>
455461

456462
In addition to the properties understood by [`colorBy`, etc.](#property-by),

0 commit comments

Comments
 (0)