OpenDMD

The editor#

The editor is where a Formula is written and changed. It is in your web app under Formulas, in the demo, and on this site behind Open in the formula gallery and Open in editor under an example. The preview plays as you type.

To get there in your web app, press + New formula, or pick a Formula and press Remix for a bundled one or Edit for one of yours.

The preview#

The preview is at the top, and on a phone it stays in view while you scroll. The line under it says how long the loop is, or that the Formula follows the clock, how often the panel draws it (every refresh, every 2nd or every 4th, with about how many a second: your panel's own figure when one is connected), and how hard it is for the panel: light, medium or heavy. Hover over that line to see the estimate in milliseconds a frame. The preview draws its frames at about the moments the panel would, as far as your screen's own refresh allows.

The rating counts how fast the panel usually draws the Formula. The panel also needs to be able to draw it the slow way, when it can't use its faster path, and refuses a Formula that would take more than about 40 ms a frame that way. (A smooth one past 32 ms is drawn every 2nd refresh instead, and the line under the preview says so.) Such a Formula is rated too heavy, and a line under the preview says so, even when it would usually be light.

The row under the preview holds the time.

Edit while the picture is held and the new text is drawn at the same moment.

A Formula that draws over a GIF is shown over a sample picture. Pick a GIF… draws it over one of the GIFs in your playlist or a GIF file from your computer, moving as the GIF does.

When something is wrong#

If the text has a mistake, the editor says what is wrong just above the code, marks the place and keeps playing the last version that worked, dimmed.

Changing numbers and colours#

Typing#

Settings and controls#

⚙ Settings opens one sheet for what the Formula says about itself. Each change there is a line at the top of the text.

A control line looks like control speed 0..4 = 1 "Speed". speed is the value the Formula reads, from 0 to 4, starting at 1, labelled "Speed". A choice looks like control shape = cube, ring, and shape is 0 for the first word, 1 for the next and so on. A Formula that reads a, b or c without a control line gets a plain slider from 0 to 1 for each.

Try it out#

A Formula that reads the world around the panel, such as daylight, night or replay.game, gets Try it out under the preview. It changes only the preview.

Saving and showing#

In your web app, the buttons under the code are these.

On this site the editor has Open on my panel instead of Save, and Copy code and Submit to the gallery… as well. It saves the Formula on your panel under Your formulas and opens it in your web app. Your changes on the site are kept in this browser, and Continue where you left off puts them back when you come back to the Formula. In the demo and on this site, What costs most marks the lines that take the panel the most work, and Tidy up lays the code out the usual way.

Earlier versions… lists the last ten versions of this Formula kept in this browser, from each save and from when it arrived. Tap one to see what going back would change, then Go back to this. Ctrl+Z takes it away again.

‹ Formulas goes back to your Formulas. If you leave without saving, the Formulas view offers Continue editing at the top.