# Single moving pixel across a 2d map?

**URL:** <https://forum.electromage.com/t/single-moving-pixel-across-a-2d-map/1324>\
**Category:** Patterns and Code\
**Created:** [June 22, 2021, 2:30am UTC](https://forum.electromage.com/t/single-moving-pixel-across-a-2d-map/1324 "2021-06-22T02:30:14Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![Scruffynerf](https://forum.electromage.com/letter_avatar_proxy/v4/letter/s/34f0e0/32.png) [@Scruffynerf](https://forum.electromage.com/u/Scruffynerf)\
**Post date:** [June 22, 2021, 2:40am UTC](https://forum.electromage.com/t/single-moving-pixel-across-a-2d-map/1324/3 "2021-06-22T02:40:37Z")

</div>

Jeff is replying and I know his answer will be awesome.

The “PB” way is to do that test during the Render, as X changes from 0 to 1… (And with scaling and shifting, you can make -1 to 1 span across 0 to 1… (Example: multiply X (or Y, in your case) by 2, and now it’s 0 to 2… And then subtract 1 and it’s -1 to 1…)

That said you can also look at my post [Waves upon waves](https://forum.electromage.com/t/waves-upon-waves/1303) for a different way to do it.

---

_[View the full topic](https://forum.electromage.com/t/single-moving-pixel-across-a-2d-map/1324)._
