linebender / linebender/vello

Rendering bug when stroking rect on window boundary

Open
#1,483 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Rust
Stars
4.3k
Forks
300
Avg merge
2d 13h
Merged PRs (30d)
61

Description

Image

It only happens with certain origins and widths. To reproduce, swap this function at the bottom of the `simple` example:

```rust
pub fn add_shapes_to_scene(scene: &mut Scene) {
let rect = vello::kurbo::Rect::from_origin_size((113.5, 0.5), (103.0, 61.0));
scene.stroke(&Stroke::new(1.0), Affine::IDENTITY, Color::from_rgb8(255, 0, 0), None, &rect);
}
```

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

Replace the function at the bottom of the `simple` example with the reproduction shown, then run the example and inspect the stroked rectangle at the window boundary. Trace the rendering path for origins and widths that reproduce the artifact; done means the rectangle renders correctly for the supplied case and other affected boundary positions.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
computer-graphics
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.