linebender / linebender/tiny-skia

Feature request: Mask union

Open
#76 6 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Rust
Stars
1.6k
Forks
99
Avg merge
2h 52m
Merged PRs (30d)
1

Description

I have an app where I load layers from SVGs, repaint them various colors, stack them, and output the results as PNGs. To minimize the memory consumed by intermediate results, I always union together masks that are being painted the same color for the same output PNG, unless I need to avoid doing so for Z-order reasons. Thus, being able to take the union of two masks via a tiny-skia routine rather than a loop I had to write myself, would be very useful.

As well, I could get by with fewer SVGs given subtraction and XOR operations on masks.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

The issue names no files or tests; start by locating tiny-skia's mask APIs and existing raster-operation coverage. Define the expected union, subtraction, and XOR behavior, including the stated Z-order exception, and finish when these operations are available through a tiny-skia routine with tests.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
computer-graphics
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.