bevyengine / bevyengine/bevy

Implement `std::iter::Sum` for color types

Open Beginner friendly
#24,946 5 comments 0 reactions 0 assignees View on GitHub
A-Color C-Usability D-Straightforward S-Needs-Design X-Contentious
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?

This allows you to use `.sum()` on a list of colors.

It should be a simple change; I may be willing to contribute if I'm confident it's easy enough.

Contributor guide

Open the contributing guide

Research direction

Search the color types and existing std::iter trait implementations in the Rust source, then inspect nearby tests or examples for color arithmetic. Implement Sum consistently for the relevant color types and add or update tests showing that an iterator of colors can be summed successfully.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
game-dev
Issue type
Feature
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
68/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.