Better spread algorhytm, work in progress

This commit is contained in:
Marco Pesenti Gritti
2007-05-07 16:24:41 +02:00
parent c89bc07e0b
commit fb019bc9f5
3 changed files with 98 additions and 37 deletions
Regular → Executable
View File
+4
View File
@@ -54,6 +54,10 @@ canvas = hippo.Canvas()
root_box = SpreadBox(background_color=0xe2e2e2ff)
canvas.set_root(root_box)
box = SnowflakeBox()
snow_flake = _create_snowflake(box, 0)
root_box.set_center_item(box)
box = SnowflakeBox()
snow_flake = _create_snowflake(box, 30)
root_box.add_item(box)