pyhexlib package
- class pyhexlib.AxialCoordinate(r, q)
Bases:
tuple- q
Alias for field number 1
- r
Alias for field number 0
- class pyhexlib.Direction(value)[source]
Bases:
EnumAn enumeration.
- EAST = 'East'
- NORTH = 'North'
- NORTHEAST = 'Northeast'
- NORTHWEST = 'Northwest'
- SOUTH = 'South'
- SOUTHEAST = 'Southeast'
- SOUTHWEST = 'Southwest'
- WEST = 'West'
- class pyhexlib.Orientation(value)[source]
Bases:
EnumAn enumeration.
- FLAT = 'Flat Top'
- POINTY = 'Pointy Top'
- pyhexlib.init(settings=None, *, orientation=Orientation.FLAT, scale=(1.0, 1.0), log_level=None)[source]
- Parameters:
settings (Dict[str, Any] | None)
orientation (Orientation)
scale (Tuple[float, float])
log_level (int | None)
- Return type:
Dict[str, Any]
Submodules
- pyhexlib.assets module
- pyhexlib.basic module
AxialCoordinateBoundsDirectionHexagonNeighborhoodOffsetCoordinateOrientationastar()axial_coordinates()axial_to_cube()axial_to_offset()compute_direction()dijkstra()distance()distance_axial()distance_axial_with_cube()get_direction()nb_dir_mapping()neighborhood_basic()offset_to_axial()
- pyhexlib.graphic module
Sizeangle_to_direction()compute_angle()compute_area()compute_direction()compute_offset()compute_screen_size()compute_viewport_bounds()direction_to_angle()draw_centered()hex_center()hex_center_flat()hex_center_pointy()hex_corner_with_offset()hex_corners()hex_corners_flat()hex_corners_pointy()hex_dimensions()rotate_image()rotate_image_to_direction()xy_to_rc()xy_to_rc_flat()xy_to_rc_pointy()
- pyhexlib.hexagons module
- pyhexlib.layers module
- pyhexlib.palette module
- pyhexlib.render module
HexGridRendererHexGridRenderer.__repr__()HexGridRenderer.get_angle()HexGridRenderer.get_layer()HexGridRenderer.get_renderer()HexGridRenderer.get_surface()HexGridRenderer.hex_at()HexGridRenderer.is_layer_visible()HexGridRenderer.point_to_hex()HexGridRenderer.render()HexGridRenderer.render_background()HexGridRenderer.render_layers()HexGridRenderer.scroll()HexGridRenderer.scroll_h()HexGridRenderer.scroll_v()HexGridRenderer.set_layer_visible()HexGridRenderer.set_origin()HexGridRenderer.set_renderer()HexGridRenderer.toggle_bg_visible()HexGridRenderer.toggle_visible()
load_font_from_resources()
- pyhexlib.tokens module
- pyhexlib.utils module
- pyhexlib.viewport module