Wolfram Archive
Wolfram Programming Lab is a legacy product.
All the same functionality and features, including access to Programming Lab Explorations, are available with Wolfram|One.
Start programming now. »

Twirl Your Name

Drag a slider to rotate your name.

Run the code to write your name in large text. Try other sizes:

SHOW/HIDE DETAILS

You can run any code, including strings. The output doesnt have quotes, but its a string too:

"sophia"

Make 30-point text (a point is a printers measure equal to 1/72 inch):

Style["sophia", 30]

HIDE DETAILS
Style["sophia", 30]

Rotate it by 50 degrees. Try other angles:

SHOW/HIDE DETAILS

Rotate a text (type the degree symbol as deg):

Rotate["xxxx", 50 \[Degree]]

HIDE DETAILS
Rotate[Style["sophia", 30], 50 \[Degree]]

Make it interactive. Drag the slider to rotate the text:

SHOW/HIDE DETAILS

Its easy to make anything interactive in the Wolfram Language.

Heres the expression to rotate sophia:

Rotate[Style["sophia", 30], 50 \[Degree]]

To make it interactive, wrap the expression with Manipulate, replace the fixed angle 50 with the variable angle, and specify that angle can vary from 0 to 360 (make sure theres a space between angle and °):

Manipulate[ Rotate[Style["sophia", 30], angle \[Degree]], {angle, 0, 360}]

HIDE DETAILS
Manipulate[ Rotate[Style["sophia", 30], angle \[Degree]], {angle, 0, 360}]