linebender / linebender/piet

Core Graphics Text Color

Open
#419 11 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug piet-coregraphics
Dominant language
Rust
Stars
1.4k
Forks
98
PR merge metrics
No merged PRs in 30d

Description

It looks text color isn't correct with Core Graphics backend. The following simple example just draws some text with the same color with the background, but the actual text color is different with the background.

    Label::new("test label")
        .with_text_color(Color::rgb8(64, 120, 242))
        .background(Color::rgb8(64, 120, 242))
Screenshot 2020-09-28 at 09 43 06

Contributor guide

Open the contributing guide

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

Start by reproducing the provided Label example with the Core Graphics backend, using the same text and background color. Trace how text and background colors are handled there, and consider the issue done when the rendered text color matches the background color.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
computer-graphics
Issue type
Bug
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.