Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/peterthehan/runescape-text

Convert text to a text image with RuneScape chat effects.
https://github.com/peterthehan/runescape-text

animation buffer cli command-line console effects gif image osrs rs3 runescape terminal text text-animation

Last synced: about 2 months ago
JSON representation

Convert text to a text image with RuneScape chat effects.

Awesome Lists containing this project

README

        

# RuneScape Text

Convert text to a text image with [RuneScape](https://www.runescape.com/) chat effects.


Selling rune scimmy 15k

More examples


92 is half of 99


Free armor trimming!


Fun things are fun.


The quick brown fox jumps over the lazy dog


Lorem ipsum

## Getting started

```
npm i runescape-text
```

> If you're on Windows and installation fails due to issues with `canvas`, follow the instructions at https://github.com/Automattic/node-canvas/wiki/Installation:-Windows to install the necessary dependencies. You can find installation instructions for other operating systems in the same wiki.

## Examples

```
npx runescape-text "glow3:wave:hello world"
```

```ts
import { writeFileSync } from "node:fs";

import getRuneScapeText from "runescape-text";

const message = "glow3:wave:hello world";
const options = { debug: true };
const { data, extension } = getRuneScapeText(message, options);

writeFileSync(`./runescape-text.${extension}`, Buffer.from(data));
```

## References

- Chat effect guides:
- https://oldschool.runescape.wiki/w/Chat_Interface#Chat_effects
- https://www.wikihow.com/Write-Text-Effects-on-Runescape
- Color chart reference for the `pattern` color effect:


Pattern color chart