• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

pybricks / pybricks-micropython / 19958406265
56%
master: 50%

Build:
Build:
LAST BUILD BRANCH: dependabot/npm_and_yarn/npm/firmware/lodash-4.17.23
DEFAULT BRANCH: master
Ran 05 Dec 2025 09:22AM UTC
Jobs 2
Files 137
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

05 Dec 2025 09:20AM UTC coverage: 56.406% (-0.2%) from 56.593%
19958406265

Pull #421

github

laurensvalk
pbio/color/util: Add heuristic distance for saturated colors.

The bicone mapping is highly distant dependent, which makes it suitable in
limited cases, and it doesn't work great with the default colors.

If only saturated or grayscale colors are in the mapping, we can generally get
a much better result by looking at hue only for saturated colors and looking at
value only for unsaturated colors, and use the saturation to decide which to
pick. This also means we won't need the workaround of having negative V for None.

The logic here is that if you do specify fine-grained, calibrated colors, then
it will use the original bicone distance mapping.
Pull Request #421: Improve color detection for typical use cases

1 of 35 new or added lines in 4 files covered. (2.86%)

3 existing lines in 3 files now uncovered.

4614 of 8180 relevant lines covered (56.41%)

16452199.97 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
1
0.0
0.0% pybricks/pupdevices/pb_type_pupdevices_colordistancesensor.c
2
0.0
0.0% pybricks/pupdevices/pb_type_pupdevices_colorsensor.c
15
0.0
0.0% pybricks/util_pb/pb_color_map.c
16
36.0
-64.0% lib/pbio/src/color/util.c

Uncovered Existing Lines

Lines Coverage ∆ File
1
0.0
0.0% pybricks/pupdevices/pb_type_pupdevices_colordistancesensor.c
1
0.0
0.0% pybricks/pupdevices/pb_type_pupdevices_colorsensor.c
1
0.0
0.0% pybricks/util_pb/pb_color_map.c
Jobs
ID Job ID Ran Files Coverage
1 virtualhub - 19958406265.1 05 Dec 2025 09:22AM UTC 115
44.59
GitHub Action Run
2 PBIO - 19958406265.2 05 Dec 2025 09:24AM UTC 73
66.28
GitHub Action Run
Source Files on build 19958406265
  • Tree
  • List 137
  • Changed 6
  • Source Changed 6
  • Coverage Changed 4
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #19958406265
  • Pull Request #421
  • PR Base - master (#19958159377)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc