# Spicy Text - A simple text animation and effect library for Processing

**URL:** <https://discourse.processing.org/t/spicy-text-a-simple-text-animation-and-effect-library-for-processing/47409>\
**Category:** Gallery\
**Tags:** contributions\
**Created:** [October 21, 2025, 3:36am UTC](https://discourse.processing.org/t/spicy-text-a-simple-text-animation-and-effect-library-for-processing/47409 "2025-10-21T03:36:44Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![BarneyCodes](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/barneycodes/32/21206_2.png) [@BarneyCodes](https://discourse.processing.org/u/BarneyCodes)\
**Post date:** [October 21, 2025, 3:36am UTC](https://discourse.processing.org/t/spicy-text-a-simple-text-animation-and-effect-library-for-processing/47409/1 "2025-10-21T03:36:44Z")

</div>

Hello!

A little while ago I released a library called Spicy Text, which lets you nice and easily add colours and animations to your text in Processing.  
I finally got around to making a [video](https://youtu.be/WqmxtVmdi9o) that goes over how to install and use the library, which is a great place to start with the library.

![spicyText](https://canada1.discourse-cdn.com/flex036/uploads/processingfoundation1/original/3X/9/7/97ae513b8403575cec2bca696aa49cd0bc188c3a.gif)

I originally made the library while making my Steam game [Star Mining Co.](https://store.steampowered.com/app/2584800/Star_Mining_Co/) (also made with Processing!) and figured that it’d probably be really useful for other people too, so I’ve made it into a stand alone library, which is available through the Processing IDE in the contribution manager.

**How to use Spicy Text:**

To give you a bit of a taste of how it works, I’ll quickly go over how to make the text you see above.

```java

// Create a spicy text object
SpicyText mySpicyText;

// Some text we want to display
// This has the 3 different "tag" types, EFFECT, COLOUR, and BACKGROUND, which all have a matching END_EFFECT, END_COLOUR, and END_BACKGROUND tag for when we want them to stop
String myText = "This is some [EFFECT=WAVE][COLOUR=#FFFF0000]SPICY[END_COLOUR][END_EFFECT] [BACKGROUND=255]TEXT![END_BACKGROUND]";

void setup() {
    //...

    // Initialise mySpicyText object, pass in the sketch, the text, and text size
    mySpicyText = new SpicyText(this, myText, textSize);

    //...
}

void draw() {
    //...

    // draw the Spicy Text at a given x, y location
    mySpicyText.draw(x, y);

    //...
}

```

**Features:**  
Other than the colouring and animations seen above, the library has a few other features that you might find handy, such as:

- Text wrapping
- Accurate text dimensions (handy for tooltips and things like that)
- Custom themes
- Custom effects

I really hope you like the library, and I’d love to see what you make with it!

---

<div class="post-metadata">

**Author:** ![ProcessingOrg](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/processingorg/32/18341_2.png) [@ProcessingOrg](https://discourse.processing.org/u/ProcessingOrg)\
**Post date:** [October 24, 2025, 4:12pm UTC](https://discourse.processing.org/t/spicy-text-a-simple-text-animation-and-effect-library-for-processing/47409/2 "2025-10-24T16:12:05Z")

</div>



---

<div class="post-metadata">

**Author:** ![ProcessingOrg](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/processingorg/32/18341_2.png) [@ProcessingOrg](https://discourse.processing.org/u/ProcessingOrg)\
**Post date:** [October 24, 2025, 4:12pm UTC](https://discourse.processing.org/t/spicy-text-a-simple-text-animation-and-effect-library-for-processing/47409/3 "2025-10-24T16:12:12Z")

</div>


