# How to apply noisy bits to entire display?

**URL:** <https://discourse.psychopy.org/t/how-to-apply-noisy-bits-to-entire-display/10359>\
**Category:** Coding\
**Created:** [December 20, 2019, 2:16pm UTC](https://discourse.psychopy.org/t/how-to-apply-noisy-bits-to-entire-display/10359 "2019-12-20T14:16:03Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rlchard](https://avatars.discourse-cdn.com/v4/letter/r/439d5e/32.png) [@Rlchard](https://discourse.psychopy.org/u/Rlchard)\
**Post date:** [December 20, 2019, 2:16pm UTC](https://discourse.psychopy.org/t/how-to-apply-noisy-bits-to-entire-display/10359/1 "2019-12-20T14:16:03Z")

</div>

Hi, I am aiming to use the noisy bits method to effectively have continuous screen luminance for a contrast detection experiment. My plan is to convert the entire display into a numpy array, perform the noisy bits transformation, then output the transformed array as my display.

However, using the following code, it appears there are no float values in my display for me to perform noisy bits upon. This remains even after gamma correction:

```auto
im = np.array(win.getMovieFrame())
if im.all() % 1 == 0:
message = "all pixel values are integers"

```

Also, if I successfully perform this transformation, I am a little lost on how I would output the transformed array as my display window.

Could someone point me in the right direction i.e. suggest my next step?

Thanks,  
Richard
