addCircle(layer, -> id , method of controller

Add a new Circle to a layer on the controller of a player.

name type description
layer int layer of the world (must be >= 0)
properties …Object each with Sprite properties for a Circle

the identifier (int) of the sprite

// add a new red Circle with radius 40 and its center at 200,300 to layer zero on the controler of player 1.

UB.controller(playerID).addCircle(0,{x:200, y:300, radius: 40, fill: "#F00"});

See all methods of the api.