Greasy Fork is available in English.

Drawaria Power Drawing Tools

Combines Rapid Drawing and Pattern Bot with a modern UI for Drawaria.online

You will need to install an extension such as Tampermonkey, Greasemonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install an extension such as Tampermonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Userscripts to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install a user script manager extension to install this script.

(I already have a user script manager, let me install it!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(I already have a user style manager, let me install it!)

ئاپتورى
YouTubeDrawaria
بۈگۈن قاچىلانغىنى
0
جەمئىي قاچىلانغىنى
21
باھا نومۇرى
0 0 0
نەشرى
1.0
قۇرۇلغان ۋاقتى
2025-05-15
يېڭىلانغان ۋاقتى
2025-05-15
Size
54.5 KB
ئىجازەتنامىسى
MIT
قوللايدىغىنى

- Rapid Drawing (Script 1 Adaptado):

UI en la pestaña "Rapid Draw" con inputs para configurar el comportamiento.
createAdditionalSockets(): Crea nuevos WebSockets y (gracias al interceptor global) se añaden a managedSockets.
startRapidDrawing() / stopRapidDrawing(): Controlan el proceso.
sendRapidDrawCommandsLogic(): Envía los comandos a todos los sockets en managedSockets que estén abiertos.

- Pattern Bot (Script 2 Adaptado):

UI en la pestaña "Pattern Bot". Las funciones originales PatternSelector, BotControl, DrawingControls se llaman para construir esta parte.
Las clases Player, Connection, Room, Actions se han mantenido en gran medida, pero:
Connection.prototype.open: Ya no llama a serverconnect. Crea un nuevo WebSocket que será interceptado. Almacena connectString para enviarlo cuando el socket esté listo (después de recibir '40' o en onopen).
Connection.prototype.socket: Se le asigna el socket creado.
Connection.prototype.onmessage: Es el manejador específico del bot. El interceptor global le pasa los mensajes si el socket coincide.
Se ha añadido startHeartbeat y stopHeartbeat a Connection para mantener viva la conexión del bot.
Las funciones de dibujo de patrones (pb_drawPattern, pb_execute, pb_drawcmd, pb_getRainbowColor, pb_clamp, pb_delay) se han prefijado con pb_ para evitar conflictos de nombres y asegurar que usan las variables correctas (pb_executionLine, pb_drawing_active).
pb_drawcmd ahora toma coordenadas 0-100 como entrada y las normaliza internamente a 0-1, como en el script original 2.
window.myRoom se mantiene por si alguna parte del código original (o futuras) lo necesita para información de la sala principal.