Warning, /education/gcompris/external/qml-box2d/examples/polygons/polygons.qml is written in an unsupported language. File is not indexed.

0001 import QtQuick 2.0
0002 import Box2D 2.0
0003 import "../shared"
0004 
0005 Item {
0006     id: screen
0007 
0008     width: 800
0009     height: 600
0010 
0011     World { id: physicsWorld; }
0012 
0013     Repeater {
0014         model: 10
0015         delegate: Trapezoid {
0016             x: index * 150 + 10;
0017             y: Math.random() * (screen.height / 3);
0018             rotation: Math.random() * 90;
0019         }
0020     }
0021 
0022     ScreenBoundaries {}
0023 
0024     DebugDraw {
0025         world: physicsWorld
0026         opacity: 0.75
0027     }
0028 }