> For the complete documentation index, see [llms.txt](https://shrimp-2.gitbook.io/shrimp-cat/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://shrimp-2.gitbook.io/shrimp-cat/shrimp-cat-docs/crypto-meme-generator.md).

# Crypto-Meme Generator

A script to overlay shrimp-cat captions onto an image:

```python
from PIL import Image, ImageDraw, ImageFont

def create_meme(image_path, text, output_path):
    # Load Image
    img = Image.open(image_path)
    draw = ImageDraw.Draw(img)
    
    # Font Settings
    font = ImageFont.truetype("arial.ttf", size=30)
    text_width, text_height = draw.textsize(text, font=font)
    
    # Position Text
    x = (img.width - text_width) // 2
    y = img.height - text_height - 10
    
    # Add Text to Image
    draw.text((x, y), text, font=font, fill="white")
    
    # Save Meme
    img.save(output_path)

# Example Use
create_meme("shrimp-cat.jpg", "HODL like a shrimp, dream like a whale!", "shrimp-cat-meme.jpg")

```

**Crypto Price Fetcher**

A script to fetch live prices and display Shrimp Cat’s take:

```python
import requests

def get_crypto_price(coin):
    url = f"https://api.coingecko.com/api/v3/simple/price?ids={coin}&vs_currencies=usd"
    response = requests.get(url)
    data = response.json()
    return data[coin]["usd"]

def shrimp_cat_insight(price):
    if price < 1:
        return "Affordable as shrimp crackers! Time to stack up!"
    elif price < 100:
        return "Pricey, but still within claw’s reach."
    else:
        return "Whale territory! Better to stay in the shrimp zone."

# Example
coin = "bitcoin"
price = get_crypto_price(coin)
insight = shrimp_cat_insight(price)
print(f"Shrimp Cat says: Bitcoin is at ${price}. {insight}")

```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://shrimp-2.gitbook.io/shrimp-cat/shrimp-cat-docs/crypto-meme-generator.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
