Skip to content

[Bug] Unexpected grayscale mapping on EV3 #2442

@laurensvalk

Description

@laurensvalk

The current brightness to EV3 color code mapping appears to be 33%, 33%, 33%, 1%:

  • 0: 3
  • 1: 3
  • 25: 3
  • 33: 3
  • 34: 2
  • 66: 2
  • 67: 1
  • 99: 1
  • 100: 0

For four colors, I would have expected them to be evenly distributed in chunks of 25%.

To reproduce, replace 67 with an intensity of your choosing.

hub.screen.draw_box(0, 0, 100, 100, fill=True, color=Color(0, 0, 67))

Metadata

Metadata

Assignees

No one assigned

    Labels

    platform: EV3Issues related to LEGO MINDSTORMS EV3software: pybricks-micropythonIssues with Pybricks MicroPython firmware (or EV3 runtime)topic: displayIssues related to graphical displays

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions