bevyengine / bevyengine/bevy

Eyedropper tool

Open
#24,810 2 comments 0 reactions 0 assignees View on GitHub
A-UI C-Feature D-Complex D-Domain-Expert O-Linux O-MacOS O-Web O-Windows S-Needs-Design
Dominant language
Rust
Stars
48.2k
Forks
4.8k
Avg merge
3d 22h
Merged PRs (30d)
161

Description

## What problem does this solve or what need does it fill?

In the current Bevy editor mocks, the color picker incudes an eyedropper tool. Currently there's no way to support this in Bevy.

## What solution would you like?

If we want to sample colors from outside the Bevy window, there are two problems that need to be solved:

* Capturing the pointer so that click events don't trigger other apps
* Getting the screen coordinates of the click event
* Sampling the pixel color at that point

These will require native OS code, as these features aren't provided through winit. These can go into the platform crate.

## What alternative(s) have you considered?

A less ambitious approach is to only support picking colors from inside the bevy window.

Contributor guide

Open the contributing guide

Research direction

Start by reviewing the platform crate and the current winit input handling, focusing on pointer capture, screen-coordinate retrieval, and pixel sampling. Compare the native OS requirements across supported platforms and define whether the implementation should support outside-window sampling or only the Bevy window; done means the eyedropper can reliably select the intended color without triggering other applications.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
desktop
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.