# Rotating text "|" vs rotating line

**URL:** https://discourse.processing.org/t/rotating-text-vs-rotating-line/37762
**Category:** Coding Questions
**Tags:** homework
**Created:** [June 29, 2022, 7:50pm UTC](https://discourse.processing.org/t/rotating-text-vs-rotating-line/37762 "2022-06-29T19:50:32Z")
**Posts on this page:** 1
**Showing post:** 3

<div class="post-metadata">

### Author: ![glv](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/glv/32/18785_2.png) [@glv](https://discourse.processing.org/u/glv)
#### Post date: [June 29, 2022, 8:06pm UTC](https://discourse.processing.org/t/rotating-text-vs-rotating-line/37762/3 "2022-06-29T20:06:52Z")

</div>

Hello @Erif ,

This may give you some insight about aligning text and lines:

> [@Unexpected Character Movement](https://discourse.processing.org/t/unexpected-character-movement/16716):
>
> I am developing a sketch to graphically display GPS data coming from an Arduino. The sketch paints the background and “gauge” bezel and then calls various functions to fill in the face with appropriate data, . The compass function paint dots for 5 degree gradations in a circle inside the bezel. Following the dots the directional characters are displayed in a circle around the dots. Finally a pointer is painted. The first time through the function, all is well. The second time through the fun…

There is a trigonometry tutorial here:

[https://processing.org/tutorials/trig](https://processing.org/tutorials/trig)

It is not on main website but it is still available.

It is poorly formatted in places so keep an eye out for that!

For example:

 ![image](https://canada1.discourse-cdn.com/flex036/uploads/processingfoundation1/original/3X/d/1/d126ad7b2131df6dbca7bafb11f3091a9c4e55fc.png)

Should be:

**x = cosine(theta) \* radius**  
**y = sine(theta) \* radius**

Have fun!

`:)`

---

_[View the full topic](https://discourse.processing.org/t/rotating-text-vs-rotating-line/37762)._
