Module: graphics

Documentation: https://pixijs.github.io/docs/PIXI.Graphics.html keep in mind that drawings could significantly slow redraws, especially if you don't .destroy() them
Parameters:
Name Type Description
x number
y number
x2 number
y2 number
size number
color color
Source:
Returns:
Type
PIXI.Graphics
Parameters:
Name Type Description
x number
y number
radius number
size number
color color
Source:
Returns:
Type
PIXI.Graphics
Source:

Methods

(inner) load_code(name, onerror)

Parameters:
Name Type Description
name string
onerror function A function that gets executed when the code errors
Source:
Documentation: https://pixijs.github.io/docs/PIXI.Graphics.html Example: draw_circle(character.real_x,character.real_y,character.range) :) [22/10/16]
Parameters:
Name Type Description
x number
y number
x2 number
y2 number
size number
color color
Source:
Returns:
Type
PIXI.Graphics
Parameters:
Name Type Description
x number
y number
radius number
size number
color color
Source:
Returns:
Type
PIXI.Graphics
Source:

Methods

(inner) load_code(name, onerror)

Parameters:
Name Type Description
name string
onerror function A function that gets executed when the code errors
Source:
Clears drawings added with draw_circle and draw_line functions from the screen.
Parameters:
Name Type Description
x number
y number
x2 number
y2 number
size number
color color
Source:
Returns:
Type
PIXI.Graphics
Parameters:
Name Type Description
x number
y number
radius number
size number
color color
Source:
Returns:
Type
PIXI.Graphics
Source:

Methods

(inner) load_code(name, onerror)

Parameters:
Name Type Description
name string
onerror function A function that gets executed when the code errors
Source: