Package micycle.pgs.commons
Class RectangularSubdivision
java.lang.Object
micycle.pgs.commons.RectangularSubdivision
Random rectangle subdivision.
- Author:
- Java port of this sketch by Michael Carleton
-
Constructor Summary
ConstructorsConstructorDescriptionRectangularSubdivision
(double width, double height, int maxDepth, long seed) RectangularSubdivision
(double width, double height, long seed) -
Method Summary
Modifier and TypeMethodDescriptionprocessing.core.PShape
divide()
Produces a new rectangular subdivision using the configured parameters.
-
Constructor Details
-
RectangularSubdivision
public RectangularSubdivision(double width, double height, long seed) -
RectangularSubdivision
public RectangularSubdivision(double width, double height, int maxDepth, long seed)
-
-
Method Details
-
divide
public processing.core.PShape divide()Produces a new rectangular subdivision using the configured parameters.- Returns:
- a GROUP PShape where each child shape is one rectangle
-