# "Brightness pixels" example too small

**URL:** <https://discourse.processing.org/t/brightness-pixels-example-too-small/46438>\
**Category:** Coding Questions\
**Created:** [May 24, 2025, 6:11am UTC](https://discourse.processing.org/t/brightness-pixels-example-too-small/46438 "2025-05-24T06:11:29Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![sableraph](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/sableraph/32/251_2.png) [@sableraph](https://discourse.processing.org/u/sableraph)\
**Post date:** [May 24, 2025, 2:44pm UTC](https://discourse.processing.org/t/brightness-pixels-example-too-small/46438/5 "2025-05-24T14:44:03Z")

</div>

Thanks for sharing the issue. This is related to a recent change in Processing 4.4.3. We updated the default `pixelDensity()` setting to match your display’s density, which makes sketches look sharper on high-DPI screens, but it can also affect how images are drawn.

To fix the issue in this example, try adding `pixelDensity(1);` inside the `setup()` function. That should make the image fill the window as expected.

Let us know if that works!

See also:

> [@SVG Export Issue transform="scale(2,2)"](https://discourse.processing.org/t/svg-export-issue-transform-scale-2-2/46350/4):
>
> Here is the issue labelling why that this is broken [pixelDensity(2) with SVG creates incorrect viewport in the file · Issue #693 · processing/processing4 · GitHub](https://github.com/processing/processing4/issues/693) I’ve added some more labels to hopefully move this forward. Current workaround pixelDensity(1) in the setup() function to force Processing to render at low-dpi scaling.

---

_[View the full topic](https://discourse.processing.org/t/brightness-pixels-example-too-small/46438)._
