instructions
pleat.instructions ¶
Edge instructions that describe how to attach tiles to border edges during tiling growth.
attatch_tile_instruction ¶
Return a callable that builds a fresh tile graph from proto_tile and glues it to a given edge.
The newly created tile graph may itself carry instructions on its border edges, which will be executed when those edges are reached during growth. This allows recursive growth patterns to be encoded in a single proto-tile graph.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
proto_tile
|
'ProtoTile'
|
A tile object that can build a tile graph via |
required |
label
|
object
|
If given, the label of the edge in the tile graph to glue to the border edge. If None, an arbitrary edge is used. |
None
|
Returns:
| Type | Description |
|---|---|
'callable'
|
A callable |