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

pybricks / pybricks-micropython / 19735971878
56%
master: 47%

Build:
Build:
LAST BUILD BRANCH: work
DEFAULT BRANCH: master
Ran 27 Nov 2025 12:18PM UTC
Jobs 2
Files 136
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

27 Nov 2025 12:16PM UTC coverage: 56.493% (-0.2%) from 56.684%
19735971878

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.

4520 of 8001 relevant lines covered (56.49%)

16820294.24 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 - 19735971878.1 27 Nov 2025 12:18PM UTC 114
45.57
GitHub Action Run
2 PBIO - 19735971878.2 27 Nov 2025 12:21PM UTC 74
65.92
GitHub Action Run
Source Files on build 19735971878
  • Tree
  • List 136
  • Changed 6
  • Source Changed 6
  • Coverage Changed 4
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #19735971878
  • Pull Request #421
  • PR Base - master (#19735295427)
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