Conversation
To serve as base for colormap support in plots
99cdeb7 to
3cbe62e
Compare
|
I posted this feature request, which would make this vastly more performant |
Thank you! I think bitmap images are the only performant option for high-res heatmaps. Even if cetz would be fast enough, the PDF would be slow to render. |
|
I guess this was blocked by typst/typst#2575 not yet being resolved? |
|
I've closed this by accident. Although, the current API is not that good for generating bitmaps, as it does not support raw pixel data. Having to convert to PNG/JPG first seems to be unnecessary complex. |
|
Is this something a WASM plugin could deal with? |
Yes. A plug-in that takes a matrix and returns a bitmap would be cool (+ linear interpolations etc.). |
Implements a basic heatmap by drawing rects.
This is not a good solution for heatmaps with more than 15×15 tiles, as the performance is not as good for lots of rect calls.