Class: module:view/vizEntities/SquareGraphic

module:view/vizEntities/SquareGraphic(parent, w, h, screen)

new module:view/vizEntities/SquareGraphic(parent, w, h, screen)

Square is a graphic. It displays itself on a parent object. Its parent object stores its x and y. It shows a square at the parent object xy coordinates. It animates the square when picking up and dropping.
Parameters:
Name Type Description
parent Object
Properties
Name Type Description
x Number
y Number
w Number width of square to draw.
h Number height of square to draw.
screen Screen
Source: