observablehq / plot

A concise API for exploratory data visualization implementing a layered grammar of graphics
https://observablehq.com/plot/
ISC License
4.25k stars 173 forks source link

Use a more robust triangle test #2037

Closed Fil closed 5 months ago

Fil commented 5 months ago

fix #2035

A curious consequence of this change on the penguins-barycentric image: since a few pixels have become valid, the sequence of pseudo-random numbers that determines the color of each pixel in the mix is called on less elements, which shifts the pattern of pixels to the right. I triple-checked that this is not a bug: the densities (viewed by blurring) are correct.

https://github.com/observablehq/plot/assets/7001/5e2c4e86-d10f-4a92-a330-a16d675b13cc

cc: @jheer