Commit Graph

11 Commits

Author SHA1 Message Date
Florian Festi 6a809e17e7 Move trapezoidWall() from UnevenHeightBox to Boxes class 2019-06-21 21:37:57 +02:00
Florian Festi 0d07f48b7f Remove .open() call from the .render() method
Having this call there was necessary in the past as the open() method would
need the canvas size as a parameter. This is now determined automatically
after rendering.

Still calling open() is deprecated but won't result in an error.
2019-02-08 17:43:15 +01:00
Florian Festi 861c8451e2 Remove call to .close() from .render() method
There is really no need for all the generator to care
Still calling it is deprecated but won't result in an error
2019-02-08 17:32:04 +01:00
Florian Festi 2ba6fa1bf3 Use .saved_context() instead of .ctx.save() and .restore() 2019-02-07 22:43:04 +01:00
Florian Festi ded5addbe9 Remove no longer needed calls to ctx.stroke()
Boxes.move() take care of that nowadays
2019-02-07 22:43:04 +01:00
Florian Festi 4d2592fecf Add e edge to bottom_edge selection 2018-12-08 18:22:13 +01:00
Florian Festi b2c54310b6 UnevenHeightBox: Fix lid
Looks like it is difficult to come up with a really non symmectrical test case.
Thanks to Mekol for pointing this out!

Related #60
2018-03-17 21:04:24 +01:00
Florian Festi fa44eb27cf UneveHeigthBox: Minor tweaks 2018-03-17 17:32:21 +01:00
Florian Festi 58cb06ec94 UnevenHeightBox: Add lid 2018-03-17 17:19:47 +01:00
Florian Festi 7c716a9e5f UnevenHeightBox: Make bottom edge parametric 2018-03-15 20:46:00 +01:00
Florian Festi 786ff222c2 New generator: UnevenHeightBox
Box with different height in each corner
2018-03-15 19:08:47 +01:00