<span style="color:#ececec">import hype.*;
import hype.extended.layout.HGridLayout;</span>
<span style="color:#ececec">HDrawablePool pool;</span>
<span style="color:#ececec">void setup() {
size(640,640,P3D);
H.init(this).background(#242424).use3D(true);
lights();</span>
<span style="color:#ececec"> pool = new HDrawablePool(100);
pool.autoAddToStage()
.add(new HBox())
.layout(new HGridLayout().startX(-125).startY(-125).spacing(100,100).cols(10))
.onCreate(
new HCallback() {
public void run(Object obj) {
HBox d = (HBox) obj;
d
.depth(64) // depth is a 3D/HBox specific method, so put this first
.width(64)
.height(64)
.z(-500)
.rotationZ(33)
;
}
}
)
.requestAll()
;</span>
<span style="color:#ececec"> H.drawStage();
noLoop();
}</span>
<span style="color:#ececec">void draw() {</span>
<span style="color:#ececec">}</span>