Skip to content

Draw (client)

BigETI edited this page Jul 2, 2019 · 2 revisions

Draw (client)

Description

This message contains commands for drawing

Event

drawCommands

Argument

  • Draw command : array
    • i: Stroke data : array
      • 0: Tool index : int
        • 0: Pen
        • 1: Eraser
        • 2: Flood fill
      • 1: Color index : int
      • 2: Brush size : float
      • 3: From X : int
      • 4: From Y : int
      • 5: To X : int
      • 6: To Y : int

Example:

[
	"drawCommands",
	[
		[0, 2, 4, 182, 372, 182, 372],
		[0, 2, 4, 182, 372, 181, 372]
	]
]
Clone this wiki locally