Processing for Android

EN ES

Special screens

One can check if the screen uses low-bit ambient mode or burn-in protection:


void setup() {
}      

void draw() {
  if (wearLowBit()) {
    // ...
  } 
  if (wearLowBit()) {
    // ...
  }  
}

                

According to Google's documentation:

  • For devices that use low-bit ambient mode, the screen supports fewer bits for each color in ambient mode, so you should disable anti-aliasing and bitmap filtering when the device switches to ambient mode.
  • For devices that require burn-in protection, avoid using large blocks of white pixels in ambient mode and do not place content within 10 pixels of the edge of the screen, since the system shifts the content periodically to avoid pixel burn-in.