# Generating code from Static Patterns

**URL:** <https://forum.electromage.com/t/generating-code-from-static-patterns/409>\
**Category:** Patterns and Code\
**Created:** [June 12, 2020, 7:30am UTC](https://forum.electromage.com/t/generating-code-from-static-patterns/409 "2020-06-12T07:30:22Z")\
**Posts on this page:** 1\
**Showing post:** 16

<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:** [November 10, 2020, 7:21am UTC](https://forum.electromage.com/t/generating-code-from-static-patterns/409/16 "2020-11-10T07:21:29Z")

</div>

@zeb did you ever polish this code? Just came cross this thread and mentioned it as a solution for POV image uploading

> [@Persistence of Vision](https://forum.electromage.com/t/persistence-of-vision/728/8):
>
> So three ideas for images… @wizard might offer better insight into the possibility and limits of them all: 1: websocket setting of a variable which would be an encoded image. Concerns: size and saving 2: [Generating code from Static Patterns](https://forum.electromage.com/t/generating-code-from-static-patterns/409) Write a simple image to data converter and paste output into new pattern. Could be combined with #1 to make a “image pattern” maker/pusher. 3: the preview image is really a small jpg See ["Improving" Patterns](https://forum.electromage.com/t/improving-patterns/650/13) And it’s sent to the PB as part of uploading…

---

_[View the full topic](https://forum.electromage.com/t/generating-code-from-static-patterns/409)._
