# How do I display a 2d pattern?

**URL:** <https://forum.electromage.com/t/how-do-i-display-a-2d-pattern/2986>\
**Category:** Uncategorized\
**Created:** [June 3, 2023, 4:29pm UTC](https://forum.electromage.com/t/how-do-i-display-a-2d-pattern/2986 "2023-06-03T16:29:28Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![ratkins](https://forum.electromage.com/user_avatar/forum.electromage.com/ratkins/32/3035_2.png) [@ratkins](https://forum.electromage.com/u/ratkins)\
**Post date:** [June 3, 2023, 4:29pm UTC](https://forum.electromage.com/t/how-do-i-display-a-2d-pattern/2986/1 "2023-06-03T16:29:28Z")

</div>

I’ve got my Pixelblaze wired up, I’ve [done the clicky-clicky](http://app.bhencke.com/pixelmap.html) to map the pixels, I uploaded the resulting code to the Mapper tab (with Matrix and “contain” selected) and it shows “Looks OK, pixel map is live!” at the bottom of that tab.

But when I go to the “Patterns” tab and select a pattern with “2D” in the name (like “Pulse 2D”) the “Rendering Mode” indicator remains on “1D” and the pattern is obviously only rendering in one dimension. Clicking on the Rendering Mode does nothing.

What am I doing wrong?

---

<div class="post-metadata">

**Author:** ![zranger1](https://forum.electromage.com/user_avatar/forum.electromage.com/zranger1/32/301_2.png) [@zranger1](https://forum.electromage.com/u/zranger1)\
**Post date:** [June 3, 2023, 5:28pm UTC](https://forum.electromage.com/t/how-do-i-display-a-2d-pattern/2986/2 "2023-06-03T17:28:14Z")

</div>

One thing to check – after entering your map on the Mapper tab, be _very_ sure you’ve clicked the sometimes-hard-to-see “Save” button at the bottom of the page, just below “Looks Ok,…”.

---

<div class="post-metadata">

**Author:** ![ratkins](https://forum.electromage.com/user_avatar/forum.electromage.com/ratkins/32/3035_2.png) [@ratkins](https://forum.electromage.com/u/ratkins)\
**Post date:** [June 3, 2023, 6:49pm UTC](https://forum.electromage.com/t/how-do-i-display-a-2d-pattern/2986/3 "2023-06-03T18:49:17Z")

</div>

Yep, did that. There’s no indication that save (or any other button in the app, frankly) actually _did_ anything though, so I’m at a loss.

---

<div class="post-metadata">

**Author:** ![wizard](https://forum.electromage.com/user_avatar/forum.electromage.com/wizard/32/4_2.png) [@wizard](https://forum.electromage.com/u/wizard)\
**Post date:** [June 3, 2023, 8:25pm UTC](https://forum.electromage.com/t/how-do-i-display-a-2d-pattern/2986/4 "2023-06-03T20:25:09Z")

</div>

Do you have a preview of the map show up on the mapper tab?  
It should also show up on the edit tab with live pixel data.

---

<div class="post-metadata">

**Author:** ![ratkins](https://forum.electromage.com/user_avatar/forum.electromage.com/ratkins/32/3035_2.png) [@ratkins](https://forum.electromage.com/u/ratkins)\
**Post date:** [June 3, 2023, 8:36pm UTC](https://forum.electromage.com/t/how-do-i-display-a-2d-pattern/2986/5 "2023-06-03T20:36:00Z")

</div>

Yep, I have both of those.

What is supposed to happen? When I tap on a pattern with 2D in the name it should just use the 2D version of the pattern if I have the mapping correct?

---

<div class="post-metadata">

**Author:** ![wizard](https://forum.electromage.com/user_avatar/forum.electromage.com/wizard/32/4_2.png) [@wizard](https://forum.electromage.com/u/wizard)\
**Post date:** [June 4, 2023, 2:12am UTC](https://forum.electromage.com/t/how-do-i-display-a-2d-pattern/2986/6 "2023-06-04T02:12:08Z")

</div>

Yes, that is what normally happens. If you edit the pattern does it have a render2D?

---

<div class="post-metadata">

**Author:** ![ratkins](https://forum.electromage.com/user_avatar/forum.electromage.com/ratkins/32/3035_2.png) [@ratkins](https://forum.electromage.com/u/ratkins)\
**Post date:** [June 4, 2023, 6:49am UTC](https://forum.electromage.com/t/how-do-i-display-a-2d-pattern/2986/7 "2023-06-04T06:49:30Z")

</div>

It does have both `render()` and `render2d()` functions declared but when I comment out the former it says, “No valid render function found” in the rendering mode in the top left of the window.

For some reason it _really_ doesn’t think I have a matrix defined.

What’s the difference between a “Matrix” and a “multiple panel matrix” in the mapper? I have two panels running off different pins of an output expander, does that make any difference in how I have to do the mapping?

 ![IMG_0549](https://forum.electromage.com/uploads/default/original/2X/2/24c7c2d7ad952efda45f8cba7963767b7bc6396e.jpeg)

---

<div class="post-metadata">

**Author:** ![ratkins](https://forum.electromage.com/user_avatar/forum.electromage.com/ratkins/32/3035_2.png) [@ratkins](https://forum.electromage.com/u/ratkins)\
**Post date:** [June 4, 2023, 6:51am UTC](https://forum.electromage.com/t/how-do-i-display-a-2d-pattern/2986/8 "2023-06-04T06:51:16Z")

</div>

Oh hey—now it’s working? I just clicked around a bit and re-copied the pixelmap app back into the mapper tab and now it seems to work.

---

<div class="post-metadata">

**Author:** ![ratkins](https://forum.electromage.com/user_avatar/forum.electromage.com/ratkins/32/3035_2.png) [@ratkins](https://forum.electromage.com/u/ratkins)\
**Post date:** [June 4, 2023, 7:56am UTC](https://forum.electromage.com/t/how-do-i-display-a-2d-pattern/2986/9 "2023-06-04T07:56:44Z")

</div>

I guess this should be taken as a bunch of UI bugs then:

- the drop-down at the top of the mapper tab doesn’t indicate it’s just _examples_ of mapping code—I thought I _had to select_ “Matrix” or “Multiple matrix” (or whatever my layout was) _in addition to_ pasting the static mapping array generated by the pixelmap app
- Some parts of the app have old-school modify-form-then-click-save interactions (the Mapping tab) and some have new-school all-changes-are-saved-immediately-when-you-make-them interaction style (the Settings tab.) This inconsistency is confusing.
- None of the button clicks anywhere have any “sparkles” or fades or anything indicating the button has been clicked/control has been actuated. Turns out these are pretty important for usability!
- Edit: “stalled” should probably blink red or something too, that might have been why my mapping update didn’t “take”, but you really have to be watching to see that change

---

<div class="post-metadata">

**Author:** ![wizard](https://forum.electromage.com/user_avatar/forum.electromage.com/wizard/32/4_2.png) [@wizard](https://forum.electromage.com/u/wizard)\
**Post date:** [June 5, 2023, 2:01pm UTC](https://forum.electromage.com/t/how-do-i-display-a-2d-pattern/2986/10 "2023-06-05T14:01:46Z")

</div>

Thank you for the list of trouble spots!
