Module Expr Str ImportFrom alias alias alias Assign NameStore NameLoad Assign NameStore Num FunctionDef arguments args defaults body Global identifier Expr Call NameLoad Num Num Expr Call NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr Num Num Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr For NameStore Call NameLoad NameLoad body Assign NameStore Call NameLoad Num Expr Call AttributeLoad NameLoad attr Num Call NameLoad NameLoad Num BinOpSub NameLoad Num Num BinOpSub NameLoad Num Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Num BinOpSub NameLoad Num Num Num Expr Call AttributeLoad NameLoad attr Num Num Expr Call AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Num BinOpSub NameLoad Num Num Num Expr Call AttributeLoad NameLoad attr NameLoad For NameStore Call NameLoad NameLoad body Assign NameStore Call NameLoad Num Expr Call AttributeLoad NameLoad attr BinOpDiv NameLoad Num Call NameLoad NameLoad Num BinOpSub NameLoad Num Num BinOpSub NameLoad Num Expr Call AttributeLoad NameLoad attr Num Num Expr Call AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Num Num Num Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args defaults body Expr Call NameLoad Num Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args defaults body Expr Call NameLoad Str decorator_list
N/A N/A 
 *    Densities
 *
 *    by Ricard Marxer
 *
 *    This example shows how the density works.
 *    The density determines the mass per area of a body.
 *    In this example we show a column of balls all of same area and increasing
 *    densities from 0.1 to 0.9.
 *    These balls will collide against another column of balls all with the same
 *    density of 0.9.
 *    We can observe the different behavior of the collisions depending on the
 *    density.
 *
 *    Note that a density of 0.0 corresponds to a mass of 0 and the body will be
 *    considered static.
  fisica FWorld Fisica FCircle N/A world None N/A ballCount 9 setup N/A N/A N/A N/A N/A world N/A N/A size 400 400 N/A N/A smooth N/A N/A N/A Fisica init this N/A world N/A FWorld N/A N/A N/A world setGravity 0 0 N/A N/A N/A world setEdges N/A N/A N/A world remove N/A world left N/A N/A N/A world remove N/A world top N/A N/A N/A world remove N/A world bottom N/A i N/A range ballCount N/A N/A b N/A FCircle 25 N/A N/A N/A b setPosition 40 N/A map i 0 N/A ballCount 1 40 N/A height 40 N/A N/A N/A b setDensity N/A map i 0 N/A ballCount 1 0.1 0.9 N/A N/A N/A b setVelocity 100 0 N/A N/A N/A b setDamping 0.0 N/A N/A N/A b setNoStroke N/A N/A N/A b setFill N/A map i 0 N/A ballCount 1 120 0 N/A N/A N/A world add b N/A i N/A range ballCount N/A N/A b N/A FCircle 25 N/A N/A N/A b setPosition N/A width 2 N/A map i 0 N/A ballCount 1 40 N/A height 40 N/A N/A N/A b setVelocity 0 0 N/A N/A N/A b setDamping 0.0 N/A N/A N/A b setDensity 0.9 N/A N/A N/A b setNoStroke N/A N/A N/A b setFill 125 80 120 N/A N/A N/A world add b N/A draw N/A N/A N/A N/A N/A N/A background 255 N/A N/A N/A world step N/A N/A N/A world draw N/A keyPressed N/A N/A N/A N/A N/A N/A saveFrame screenshot.png N/A