# Text Converter (DESPERATE NEED!)

**URL:** <https://discourse.processing.org/t/text-converter-desperate-need/33411>\
**Category:** Coding Questions\
**Tags:** homework\
**Created:** [November 9, 2021, 12:49am UTC](https://discourse.processing.org/t/text-converter-desperate-need/33411 "2021-11-09T00:49:38Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![processingboy1](https://avatars.discourse-cdn.com/v4/letter/p/7ba0ec/32.png) [@processingboy1](https://discourse.processing.org/u/processingboy1)\
**Post date:** [November 9, 2021, 12:49am UTC](https://discourse.processing.org/t/text-converter-desperate-need/33411/1 "2021-11-09T00:49:38Z")

</div>

in desperate need, will depend whether i fail or pass the course!!!  
Due date is very near!  
No use of Arrays.

 ![Screenshot (12)](https://canada1.discourse-cdn.com/flex036/uploads/processingfoundation1/original/2X/a/ad1052f0ba823f5dc65c56a62e54e4548679921e.png)

---

<div class="post-metadata">

**Author:** ![hotfooted](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/hotfooted/32/3670_2.png) [@hotfooted](https://discourse.processing.org/u/hotfooted)\
**Post date:** [November 9, 2021, 3:31am UTC](https://discourse.processing.org/t/text-converter-desperate-need/33411/2 "2021-11-09T03:31:24Z")

</div>

lol. do your homework.

---

<div class="post-metadata">

**Author:** ![hotfooted](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/hotfooted/32/3670_2.png) [@hotfooted](https://discourse.processing.org/u/hotfooted)\
**Post date:** [November 9, 2021, 3:39am UTC](https://discourse.processing.org/t/text-converter-desperate-need/33411/3 "2021-11-09T03:39:12Z")

</div>

> **[Getting Started](https://processing.org/tutorials/gettingstarted/)**
>
> Welcome to Processing! This introduction covers the basics of writing Processing code.

> **[Reference](https://processing.org/reference/text_.html)**
>
> Draws text to the screen. Displays the information specified in the first parameter on the screen in the position specified by the additional parameters. A default font will be used unless a font is s…

> **[Button / Examples](https://processing.org/examples/button.html)**
>
> Click on one of the colored shapes in the center of the image to change the color of the background.

> **[Reference](https://processing.org/reference/color_.html)**
>
> Creates colors for storing in variables of the color datatype. The parameters are interpreted as RGB or HSB values depending on the current colorMode(). The default mode is RGB values fr…

good luck. remember you can’t spell school without cool

---

<div class="post-metadata">

**Author:** ![TfGuy44](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/tfguy44/32/41_2.png) [@TfGuy44](https://discourse.processing.org/u/TfGuy44)\
**Post date:** [November 9, 2021, 3:49am UTC](https://discourse.processing.org/t/text-converter-desperate-need/33411/4 "2021-11-09T03:49:39Z")

</div>

Looks like a cool assignment! You could probably write it in a couple of hours. I imagine since this document is 7 pages long, that there are multiple parts, and directions on how each part should work. Looks like you’ll need a few loops to draw things, and some code that manipulates strings.

What have you got so far?

---

<div class="post-metadata">

**Author:** ![Chrisir](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/chrisir/32/45_2.png) [@Chrisir](https://discourse.processing.org/u/Chrisir)\
**Post date:** [November 9, 2021, 3:22pm UTC](https://discourse.processing.org/t/text-converter-desperate-need/33411/6 "2021-11-09T15:22:24Z")

</div>

It’s forum policy not to do homework for others

The idea is that you develop a program however small  
with your own approach.

Then when you are stuck ask a specific question

---

<div class="post-metadata">

**Author:** ![processingboy1](https://avatars.discourse-cdn.com/v4/letter/p/7ba0ec/32.png) [@processingboy1](https://discourse.processing.org/u/processingboy1)\
**Post date:** [November 13, 2021, 11:31pm UTC](https://discourse.processing.org/t/text-converter-desperate-need/33411/7 "2021-11-13T23:31:37Z")

</div>

I’ve done something, but i am lost, i really need help

---

<div class="post-metadata">

**Author:** ![Chrisir](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/chrisir/32/45_2.png) [@Chrisir](https://discourse.processing.org/u/Chrisir)\
**Post date:** [November 14, 2021, 12:06am UTC](https://discourse.processing.org/t/text-converter-desperate-need/33411/9 "2021-11-14T00:06:22Z")

</div>

Can you Post your entire code here and we get you started…?

---

<div class="post-metadata">

**Author:** ![Chrisir](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/chrisir/32/45_2.png) [@Chrisir](https://discourse.processing.org/u/Chrisir)\
**Post date:** [November 14, 2021, 8:10pm UTC](https://discourse.processing.org/t/text-converter-desperate-need/33411/10 "2021-11-14T20:10:32Z")

</div>

So in your draw() you need the text("…", ….,….); line

Now the buttons

For example before setup () make an array (see reference) of PVector:

PVector[] listButtons = new PVector  
[8];

each slot of the array represents the upper left corner of the button

Another array holds the text:

String [] listTexts = new String [8];

(When you know OOP convert to a class Button)

in draw()

```auto
int i=0;
for (PVector pv : listButtons) {
rectangle(pv.x,pv.y,
300, 44);
text(listTexts[i], pv.x+3, pv.y+22);
i++;
}//for

```

Similarly in mousePressed loop over listButtons and check with if if the mouse is inside the button

Set a marker accordingly (e.g. greenColor = true or textSizeMy = 44)

When using text() for your main sentence as I mentioned before just set the text properties using these markers before text()

eg textSize(textSizeMy);

Repeat the pattern for all markers/ text properties you need

---

<div class="post-metadata">

**Author:** ![processingboy1](https://avatars.discourse-cdn.com/v4/letter/p/7ba0ec/32.png) [@processingboy1](https://discourse.processing.org/u/processingboy1)\
**Post date:** [November 15, 2021, 11:49pm UTC](https://discourse.processing.org/t/text-converter-desperate-need/33411/11 "2021-11-15T23:49:02Z")

</div>

Sure, should i just paste everything here?

---

<div class="post-metadata">

**Author:** ![TfGuy44](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/tfguy44/32/41_2.png) [@TfGuy44](https://discourse.processing.org/u/TfGuy44)\
**Post date:** [November 16, 2021, 7:28am UTC](https://discourse.processing.org/t/text-converter-desperate-need/33411/12 "2021-11-16T07:28:31Z")

</div>

Your due date was “very near” a week ago. Are you still working on this?

You can post your entire code here, yes. Be sure to use the code formatting button on it, which looks like this: \</\>

---

<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:** [November 16, 2021, 11:22am UTC](https://discourse.processing.org/t/text-converter-desperate-need/33411/13 "2021-11-16T11:22:52Z")

</div>

Hello @processingboy1,

Please read:

- [Processing FAQ - Frequently asked questions](https://discourse.processing.org/faq)
- [Homework Policy](https://discourse.processing.org/faq#homework)
- [Guidelines - Asking Questions](https://discourse.processing.org/t/guidelines-asking-questions/2147/4)
- [Guidelines - Answering Questions](https://discourse.processing.org/t/guidelines-answering-questions/2145/1)
- [p5.js Community Statement](https://p5js.org/community/)

Please _ **do not share** _ your assignment.  
I am confident that is not permitted by you academic institution.

This is directly from the “Homework Policy”:

- Students are responsible for following the policies of their school, class, and instructor. Post as if your instructor is reading.

Please _ **do not share** _ your entire code.

This is directly from the “Asking Questions” guidelines:

- **Isolate your problem** and **work in small steps**. Share only the code directly related to your problem if it is part of a bigger project, and if something isn’t working, try the smallest code that could do the thing you want.

It is my understanding that for this course you are asked to code your assignments independently and that it is designed to allow you to demonstrate your understanding.

It is in your best interest to complete your homework with integrity.

Keep in mind that everything in this topic is publicly available.

There are resources here:

> **[Welcome to Processing!](https://processing.org/)**
>
> Processing is a flexible software sketchbook and a language for learning how to code within the context of the visual arts. Since 2001, Processing has promoted software literacy within the visual arts…

With a some hard work and effort on your part you should be able to learn some programming and complete this assignment.

This spirit of this community is to help but not to do your homework assignments.

Please read the guidelines provided and be mindful of what you are sharing and posting.

`:)`
