tiny-skia
tiny-skia copied to clipboard
A tiny Skia subset ported to Rust
https://github.com/RazrFalcon/tiny-skia/blob/dadcf867130d04303f58be450e5e7385c5ea1237/path/src/stroker.rs#L1959 Should be: `// A zero-len subpath with a square line cap produces a square.`
The code below panics. Latest version : tiny-skia = "0.6.6" The panic come from the a `debug_assert!` in `src/scan/path.rs` ```rust use tiny_skia::*; fn main() { // special value let v...
This adds support for the NEON SIMD instructions. They are still nightly only and some instructions are missing, but they are close to finishing implementing all of them, so stabilization...
Text rendering is not supported and not planned. This is an absurdly complex task and the Rust ecosystem doesn't provide basically any libraries to implement this. We need: - [x]...
The README states: > Skia also supports ARM NEON instructions, which are unavailable in a stable Rust at the moment. Therefore a fallback scalar implementation will be used instead on...
Aka `SkScan_AAAPath.cpp`. There are a lot of code, like 2000-2500 LOC, and this method used only in some specific cases. Mainly for polygons, afaiu. Not sure if it's worth it.
```rust use tiny_skia::*; fn main() { let mut paint = Paint::default(); paint.set_color_rgba8(255, 0, 0, 255); paint.anti_alias = true; let path = { let mut pb = PathBuilder::new(); pb.move_to(2.5, 1.5); pb.line_to(5.5,...
Makes gradients nicer, afaiu.
Currently, we're using just a simple alpha mask, unlike Skia, which has a very complicated clipping algorithm. It's like 5000 LOC. But this algorithms is always faster that just a...