Drawing things on the screen @Rayonapp

Joined January 2022
11 Photos and videos
Alexandru Ică retweeted
Eurora Desktop already has the context. No copy and paste. No context-setting. No explaining. Just ask. One assistant. Every browser on every desktop across macOS, Windows and Linux. Articles. Videos. Docs. Threads. Just ask away
1
1
2
104
Great post on spectral rendering, and a wonderful blog in general: momentsingraphics.de/Spectra…

1
135
Alexandru Ică retweeted
The write-up of my new graph layout algorithm for SpiderMonkey is now live. We built a custom layout algorithm for JS and WASM that follows the structure of the source code. No more spaghetti nightmares from Graphviz, and thousands of times faster.
16
72
760
54,378
One thing I love about digging into rabbit holes such as PDF parsing is stumbling upon phrases like "schizophrenic PDF files".
1
2
83
The source is a highly interesting read: hal.science/hal-02143706/fil…

46
Fun fact: new ICC profiles can contain embedded programs in them that specify color space transforms. All operators describe operations performed on the stack, à la Forth.
1
138
"calculatorElement" and Annex F in this doc: color.org/specification/ICC.…

121
The code for computing winding for a quadratic Bézier can be simplified a lot by dealing with monotonic quadratics only. Testing if a sample lies to the left/right of the curve becomes extremely cheap in that case.
1
2
181
"Quadratic Approximation of Cubic Curves" contains a neat method of representing one cubic Bézier as two C1-continuous quadratics, maintaining tangents at the endpoints. Combining that with a heuristic for how many times to split the source curve gives excellent results.
1
3
8
888
I ported my demo to Rust to see if I can make things faster. The goals is to perform queries for arbitrary points and arbitrary vector paths, as fast as possible. I'll try to write everything SIMD-friendly.
1
4
144
I've implemented non-zero fill for quadratic curves without flattening them. Should be numerically robust but I haven't tested it too thoroughly yet. Very happy with the results so far. Coverage is computed per pixel individually.
1
1
90
Today I remembered that C syntax can be funny beyond typedefs: int some_function(int input[static 100]); This is valid C. And it tells the compiler that `input` has at least 100 elements.
1
60
I'm reading some older blog posts regarding boolean path ops, and I found a great paper in the process. It's short, to the point, and contains intuitive explanations and figures. “Efficient clipping of arbitrary polygons” by Günther Greiner and Kai Hormann.
1
1
79
Is there any library that can be used to generate PDFs that contain transparent images? Ideally with a transparency mask. PDFLib and iText seem like valid options, but I'm wondering if there's any open-source alternative for this.
1
101
ReportLab can do this, using an undocumented mask parameter 'auto' for drawImage, which I found in a random post on SO posted about 9 years ago.
51