Drawaria Animation Library

Advanced drawing animation library for multiplayer drawing games

Ovu skriptu ne treba izravno instalirati. To je biblioteka za druge skripte koje se uključuju u meta direktivu // @require https://update.greatest.deepsurf.us/scripts/546216/1643828/Drawaria%20Animation%20Library.js

Autor
YouTubeDrawaria
Verzija
3.0
Stvoreno
17.08.2025.
Ažurirano
17.08.2025.
Size
37,6 KB
Licenza
MIT

🚀 Drawaria Animation Library

🎯 What does this script do? / ¿Qué hace este script?

English: This script provides a core library of drawing animation functions for Drawaria. It includes various effects like "Pixel Art Characters," "Color Festival," and "Fireworks," which can be executed via console commands. The library offers utility functions for drawing pixels, sending draw commands through the game's WebSocket, managing drawing state, and generating random colors. It's designed as a foundational module for creating more complex animation scripts or bots within Drawaria.

Español: Este script proporciona una biblioteca central de funciones de animación de dibujo para Drawaria. Incluye varios efectos como "Pixel Art Characters", "Color Festival" y "Fireworks", que se pueden ejecutar a través de comandos de consola. La biblioteca ofrece funciones de utilidad para dibujar píxeles, enviar comandos de dibujo a través de WebSocket del juego, gestionar el estado del dibujo y generar colores aleatorios. Está diseñado como un módulo fundamental para crear scripts de animación o bots más complejos dentro de Drawaria.

✨ Features / Características

Advanced Drawing Animation Tools
  • 🔧 Predefined Animation Effects - Includes functions for "Pixel Art Characters", "Color Festival", and "Fireworks".
  • ⚡ Drawing Utilities - Provides functions for drawing pixels, lines, circles, and managing drawing state.
  • 🎨 Random Color Generation - Utility to create dynamic and varied color palettes.
  • 🚀 WebSocket Interaction - Functions interact with the game's WebSocket to send drawing commands.
  • 💡 Console Accessibility - Animation functions are exposed globally for easy execution from the browser console.
  • 🔒 Extensibility - Designed to be a library, allowing new animation functions to be easily added.

Español:

  • 🔧 Efectos de Animación Predefinidos - Incluye funciones para "Pixel Art Characters", "Color Festival" y "Fireworks".
  • ⚡ Utilidades de Dibujo - Proporciona funciones para dibujar píxeles, líneas, círculos y gestionar el estado del dibujo.
  • 🎨 Generación Aleatoria de Color - Utilidad para crear paletas de colores dinámicas y variadas.
  • 🚀 Interacción WebSocket - Las funciones interactúan con el WebSocket del juego para enviar comandos de dibujo.
  • 💡 Accesibilidad por Consola - Las funciones de animación se exponen globalmente para una fácil ejecución desde la consola del navegador.
  • 🔒 Extensibilidad - Diseñado para ser una biblioteca, permitiendo añadir fácilmente nuevas funciones de animación.

📥 Installation / Instalación

🇺🇸 English Instructions 🇪🇸 Instrucciones en Español
  1. Install the Tampermonkey extension (or a similar userscript manager) in your browser.
  2. Create a new userscript and paste the provided code into the editor.
  3. Save the script.
  4. Navigate to Drawaria.online and ensure you are in a room with a connected bot (like the Autodraw bot).
  5. Open your browser's developer console (usually F12).
  6. Use the provided functions to trigger animations (e.g., `DRAWING_FUNCTIONS.runAnimation('fireworks')`).
  1. Instala la extensión Tampermonkey (o un gestor de userscripts similar) en tu navegador.
  2. Crea un nuevo userscript y pega el código proporcionado en el editor.
  3. Guarda el script.
  4. Navega a Drawaria.online y asegúrate de estar en una sala con un bot conectado (como el bot Autodraw).
  5. Abre la consola de desarrollador de tu navegador (generalmente F12).
  6. Utiliza las funciones proporcionadas para activar animaciones (ej. `DRAWING_FUNCTIONS.runAnimation('fireworks')`).

🎮 How to Use / Cómo Usar

  • 🔵 Step 1: Ensure a bot (e.g., Autodraw bot) is connected to Drawaria.
    Paso 1: Asegúrate de que un bot (ej. el bot Autodraw) esté conectado a Drawaria.
  • 🟢 Step 2: Open the browser console (F12).
    Paso 2: Abre la consola del navegador (F12).
  • 🟣 Step 3: Call an animation function, for example: `DRAWING_FUNCTIONS.runAnimation('fireworks')`.
    Paso 3: Llama a una función de animación, por ejemplo: `DRAWING_FUNCTIONS.runAnimation('fireworks')`.
  • 🟠 Step 4: Use `DRAWING_FUNCTIONS.stopDrawing()` to halt any active animation.
    Paso 4: Usa `DRAWING_FUNCTIONS.stopDrawing()` para detener cualquier animación en curso.

🛠️ Technical Details / Detalles Técnicos

Feature / Característica Details / Detalles
Modular Design Core functions organized in an object (`DRAWING_FUNCTIONS`) for easy management and extension.
WebSocket Integration Relies on `window.getGameSocket()` to send drawing commands via WebSocket.
Async Operations Uses `async/await` and `Promises` for managing delays between drawing steps.
Error Handling Includes checks for socket availability and state, and basic try-catch blocks.

⚠️ Important Warnings / Advertencias Importantes

  • 🚨 This script requires an active bot connection (e.g., Autodraw bot) to Drawaria to send drawing commands. It does not connect to the game itself.
  • 🚨 Automating drawings or using bots may violate Drawaria's Terms of Service. Use responsibly and at your own risk.
  • 🚨 Animation performance depends on network conditions and the complexity of the drawing.
  • 🚨 The script may need updates if Drawaria changes its internal WebSocket API or element IDs.

Español:

  • 🚨 Este script requiere una conexión de bot activa (ej. bot Autodraw) a Drawaria para enviar comandos de dibujo. No se conecta al juego en sí.
  • 🚨 La automatización de dibujos o el uso de bots puede violar los Términos de Servicio de Drawaria. Úsalo de manera responsable y bajo tu propio riesgo.
  • 🚨 El rendimiento de la animación depende de las condiciones de red y la complejidad del dibujo.
  • 🚨 El script podría necesitar actualizaciones si Drawaria cambia su API WebSocket interna o los IDs de los elementos.

🔧 Troubleshooting / Solución de Problemas

✅ Animations can be triggered from the console, and drawing commands are sent to the game socket.
✅ Las animaciones se pueden activar desde la consola y los comandos de dibujo se envían al socket del juego.
⚠️ If animations fail to draw, ensure a bot is connected and that `window.getGameSocket()` is correctly retrieving the WebSocket instance. Check console for errors.
⚠️ Si las animaciones no logran dibujar, asegúrate de que un bot esté conectado y de que `window.getGameSocket()` esté recuperando correctamente la instancia de WebSocket. Revisa la consola en busca de errores.
❌ If animations seem stuck or incomplete, try reducing complexity, adjusting delays (`_delay`), or checking the bot's own status.
❌ Si las animaciones parecen atascadas o incompletas, intenta reducir la complejidad, ajustar los retrasos (`_delay`), o verificar el estado del propio bot.

📊 Compatibility / Compatibilidad

✅ Compatible Browsers / Navegadores Compatibles ✅ Required Extensions / Extensiones Requeridas
Chrome, Firefox, Edge, Opera
(Browsers supporting userscripts, WebSocket, and Promises)
Tampermonkey or similar userscript manager
(Required for script execution)
A Drawaria drawing bot script (required for actual drawing)

🔄 How to Disable / Cómo Desactivar

Method 1 - Script Manager:

Open your userscript manager (e.g., Tampermonkey), find "Drawaria Animation Library", and disable or delete it.

Método 1 - Gestor de Scripts: Abre tu gestor de userscripts (ej. Tampermonkey), busca "Drawaria Animation Library" y desactívalo o elimínalo.

Method 2 - Stop Animations:

If an animation is running, call `DRAWING_FUNCTIONS.stopDrawing()` in the console to halt it.

Método 2 - Detener Animaciones: Si una animación está en curso, llama a `DRAWING_FUNCTIONS.stopDrawing()` en la consola para detenerla.

💡 Pro Tips / Consejos Profesionales

  • Add New Animations: Create new functions within `DRAWING_FUNCTIONS` and call them using `DRAWING_FUNCTIONS.runAnimation('yourNewAnimation')`.
  • Customize Delays: Adjust the delay values (e.g., `pixelDrawDelay`, `fireworkDelay`) to control the speed and pacing of animations.
  • Modify Drawing Parameters: Experiment with parameters like `size`, `thickness`, `offsetX`, `offsetY` in functions like `_drawPixel` and `drawImage` for different visual effects.
  • Combine Animations: Chain multiple animation functions together sequentially for more complex visual sequences.
  • Extend Bot Functionality: Integrate this library with a drawing bot to automate the creation of complex drawings or patterns.

Español:

  • Añade Nuevas Animaciones: Crea nuevas funciones dentro de `DRAWING_FUNCTIONS` y llámalas usando `DRAWING_FUNCTIONS.runAnimation('tuNuevaAnimacion')`.
  • Personaliza Retardos: Ajusta los valores de retardo (ej. `pixelDrawDelay`, `fireworkDelay`) para controlar la velocidad y el ritmo de las animaciones.
  • Modifica Parámetros de Dibujo: Experimenta con parámetros como `size`, `thickness`, `offsetX`, `offsetY` en funciones como `_drawPixel` y `drawImage` para diferentes efectos visuales.
  • Combina Animaciones: Encadena múltiples funciones de animación secuencialmente para secuencias visuales más complejas.
  • Extiende la Funcionalidad del Bot: Integra esta biblioteca con un bot de dibujo para automatizar la creación de dibujos o patrones complejos.

🎉 Ready to Use! / ¡Listo para Usar!

Bring stunning animations to Drawaria with this powerful drawing library!

¡Da vida a tus dibujos en Drawaria con esta potente biblioteca de animaciones!

🎨 🚀 ✨ 💫 🌟

Author: DrawArtist | Version: 1.0 | License: MIT
Support: Report issues in the comments below | Additional Info: Provides core functions for creating various drawing animations in Drawaria.