Try now in the
Open Cloud »
(no sign-in required)

Mirror Text

Create mirror-reflected text.

Run the code to make text large. Try different texts or different sizes:

SHOW/HIDE DETAILS

This is a text string. You can run it like any other code. The output doesnt have quotes, but its a string too:

In[1]:=
X
Out[1]=

Use Style to change the styling of the text. This changes the size to 40 points (a point is a unit used by printers, equal to 1/72 inch):

In[2]:=
X
Out[2]=

HIDE DETAILS
In[1]:=
X
Out[1]=

Turn the text into an image, then reflect it. Try directions other than LeftRightfor example, TopBottom:

SHOW/HIDE DETAILS

When you run this code, the output is text. You can tell its text because you can select parts of it by dragging:

In[1]:=
X
Out[1]=

This output looks like text, but its actually an imagea picture of the text. You can tell its an image because when you click it, you get an orange frame. Rasterize turns text (and other things) into images:

In[2]:=
X
Out[2]=

If you click the image and drag one of the handles to make it bigger, you can see the individual pixels:

Out[2]=

Once youve turned text into an image, you can apply image operations to it. This reflects the text to turn it into mirror-writing:

In[3]:=
X
Out[3]=

HIDE DETAILS
In[1]:=
X
Out[1]=

Change the font family. Try other font familiesfor example, Arial or Impact:

SHOW/HIDE DETAILS

Write text in different fonts by specifying the font family:

In[1]:=
X
Out[1]=

Heres the same text in a different font:

In[2]:=
X
Out[2]=

HIDE DETAILS
In[1]:=
X
Out[1]=

Share ItMake a website that mirrors text you type in:

SHOW/HIDE DETAILS

Deploy a form that asks for some text and then displays it mirrored:

In[1]:=
X
Out[1]=

Click the link in the output to visit the site.

Share the link by right-clicking it and choosing Copy Address. Paste the link into an email, tweet, or other message.

HIDE DETAILS
In[1]:=
X
Out[1]=