# divides region into rectangles
```python
# Tested with:
# Python 3.9.13
# Windows 10
pip install divide-region-into-rectangles
from divide_region_into_rectangles import divide_region_into_rect
print(
divide_region_into_rect(
startx=50, starty=500, w=500, h=50, square_w=10, square_h=10
)
)
# [(50, 500, 60, 510), (50, 510, 60, 520), (50, 520, 60, 530), (50, 530, 60, 540), (50, 540, 60, 550), (60, 500, 70, 510), (60, 510, 70, 520), (60, 520, 70, 530), (60, 530, 70, 540), (60, 540, 70, 550), (70, 500, 80, 510), (70, 510, 80, 520), (70, 520, 80, 530), (70, 530, 80, 540), (70, 540, 80, 550), (80, 500, 90, 510), (80, 510, 90, 520), (80, 520, 90, 530), (80, 530, 90, 540), (80, 540, 90, 550), (90, 500, 100, 510), (90, 510, 100, 520), (90, 520, 100, 530), (90, 530, 100, 540), (90, 540, 100, 550), (100, 500, 110, 510), (100, 510, 110, 520), (100, 520, 110, 530), (100, 530, 110, 540), (100, 540, 110, 550), (110, 500, 120, 510), (110, 510, 120, 520), (110, 520, 120, 530), (110, 530, 120, 540), (110, 540, 120, 550), (120, 500, 130, 510), (120, 510, 130, 520), (120, 520, 130, 530), (120, 530, 130, 540), (120, 540, 130, 550), (130, 500, 140, 510), (130, 510, 140, 520), (130, 520, 140, 530), (130, 530, 140, 540), (130, 540, 140, 550), (140, 500, 150, 510), (140, 510, 150, 520), (140, 520, 150, 530), (140, 530, 150, 540), (140, 540, 150, 550), (150, 500, 160, 510), (150, 510, 160, 520), (150, 520, 160, 530), (150, 530, 160, 540), (150, 540, 160, 550), (160, 500, 170, 510), (160, 510, 170, 520), (160, 520, 170, 530), (160, 530, 170, 540), (160, 540, 170, 550), (170, 500, 180, 510), (170, 510, 180, 520), (170, 520, 180, 530), (170, 530, 180, 540), (170, 540, 180, 550), (180, 500, 190, 510), (180, 510, 190, 520), (180, 520, 190, 530), (180, 530, 190, 540), (180, 540, 190, 550), (190, 500, 200, 510), (190, 510, 200, 520), (190, 520, 200, 530), (190, 530, 200, 540), (190, 540, 200, 550), (200, 500, 210, 510), (200, 510, 210, 520), (200, 520, 210, 530), (200, 530, 210, 540), (200, 540, 210, 550), (210, 500, 220, 510), (210, 510, 220, 520), (210, 520, 220, 530), (210, 530, 220, 540), (210, 540, 220, 550), (220, 500, 230, 510), (220, 510, 230, 520), (220, 520, 230, 530), (220, 530, 230, 540), (220, 540, 230, 550), (230, 500, 240, 510), (230, 510, 240, 520), (230, 520, 240, 530), (230, 530, 240, 540), (230, 540, 240, 550), (240, 500, 250, 510), (240, 510, 250, 520), (240, 520, 250, 530), (240, 530, 250, 540), (240, 540, 250, 550), (250, 500, 260, 510), (250, 510, 260, 520), (250, 520, 260, 530), (250, 530, 260, 540), (250, 540, 260, 550), (260, 500, 270, 510), (260, 510, 270, 520), (260, 520, 270, 530), (260, 530, 270, 540), (260, 540, 270, 550), (270, 500, 280, 510), (270, 510, 280, 520), (270, 520, 280, 530), (270, 530, 280, 540), (270, 540, 280, 550), (280, 500, 290, 510), (280, 510, 290, 520), (280, 520, 290, 530), (280, 530, 290, 540), (280, 540, 290, 550), (290, 500, 300, 510), (290, 510, 300, 520), (290, 520, 300, 530), (290, 530, 300, 540), (290, 540, 300, 550), (300, 500, 310, 510), (300, 510, 310, 520), (300, 520, 310, 530), (300, 530, 310, 540), (300, 540, 310, 550), (310, 500, 320, 510), (310, 510, 320, 520), (310, 520, 320, 530), (310, 530, 320, 540), (310, 540, 320, 550), (320, 500, 330, 510), (320, 510, 330, 520), (320, 520, 330, 530), (320, 530, 330, 540), (320, 540, 330, 550), (330, 500, 340, 510), (330, 510, 340, 520), (330, 520, 340, 530), (330, 530, 340, 540), (330, 540, 340, 550), (340, 500, 350, 510), (340, 510, 350, 520), (340, 520, 350, 530), (340, 530, 350, 540), (340, 540, 350, 550), (350, 500, 360, 510), (350, 510, 360, 520), (350, 520, 360, 530), (350, 530, 360, 540), (350, 540, 360, 550), (360, 500, 370, 510), (360, 510, 370, 520), (360, 520, 370, 530), (360, 530, 370, 540), (360, 540, 370, 550), (370, 500, 380, 510), (370, 510, 380, 520), (370, 520, 380, 530), (370, 530, 380, 540), (370, 540, 380, 550), (380, 500, 390, 510), (380, 510, 390, 520), (380, 520, 390, 530), (380, 530, 390, 540), (380, 540, 390, 550), (390, 500, 400, 510), (390, 510, 400, 520), (390, 520, 400, 530), (390, 530, 400, 540), (390, 540, 400, 550), (400, 500, 410, 510), (400, 510, 410, 520), (400, 520, 410, 530), (400, 530, 410, 540), (400, 540, 410, 550), (410, 500, 420, 510), (410, 510, 420, 520), (410, 520, 420, 530), (410, 530, 420, 540), (410, 540, 420, 550), (420, 500, 430, 510), (420, 510, 430, 520), (420, 520, 430, 530), (420, 530, 430, 540), (420, 540, 430, 550), (430, 500, 440, 510), (430, 510, 440, 520), (430, 520, 440, 530), (430, 530, 440, 540), (430, 540, 440, 550), (440, 500, 450, 510), (440, 510, 450, 520), (440, 520, 450, 530), (440, 530, 450, 540), (440, 540, 450, 550), (450, 500, 460, 510), (450, 510, 460, 520), (450, 520, 460, 530), (450, 530, 460, 540), (450, 540, 460, 550), (460, 500, 470, 510), (460, 510, 470, 520), (460, 520, 470, 530), (460, 530, 470, 540), (460, 540, 470, 550), (470, 500, 480, 510), (470, 510, 480, 520), (470, 520, 480, 530), (470, 530, 480, 540), (470, 540, 480, 550), (480, 500, 490, 510), (480, 510, 490, 520), (480, 520, 490, 530), (480, 530, 490, 540), (480, 540, 490, 550), (490, 500, 500, 510), (490, 510, 500, 520), (490, 520, 500, 530), (490, 530, 500, 540), (490, 540, 500, 550), (500, 500, 510, 510), (500, 510, 510, 520), (500, 520, 510, 530), (500, 530, 510, 540), (500, 540, 510, 550), (510, 500, 520, 510), (510, 510, 520, 520), (510, 520, 520, 530), (510, 530, 520, 540), (510, 540, 520, 550), (520, 500, 530, 510), (520, 510, 530, 520), (520, 520, 530, 530), (520, 530, 530, 540), (520, 540, 530, 550), (530, 500, 540, 510), (530, 510, 540, 520), (530, 520, 540, 530), (530, 530, 540, 540), (530, 540, 540, 550), (540, 500, 550, 510), (540, 510, 550, 520), (540, 520, 550, 530), (540, 530, 550, 540), (540, 540, 550, 550)]
```
Raw data
{
"_id": null,
"home_page": "https://github.com/hansalemaos/divide_region_into_rectangles",
"name": "divide-region-into-rectangles",
"maintainer": "",
"docs_url": null,
"requires_python": "",
"maintainer_email": "",
"keywords": "rectangles,divide",
"author": "Johannes Fischer",
"author_email": "<aulasparticularesdealemaosp@gmail.com>",
"download_url": "https://files.pythonhosted.org/packages/1f/01/c557720b7b3b0a800ef48d89caa695b3ed98f0efbfe57aba0cbb6a02d245/divide_region_into_rectangles-0.10.tar.gz",
"platform": null,
"description": "\n# divides region into rectangles\n\n\n```python\n# Tested with:\n# Python 3.9.13\n# Windows 10\n\npip install divide-region-into-rectangles\n\nfrom divide_region_into_rectangles import divide_region_into_rect\n\nprint(\n divide_region_into_rect(\n startx=50, starty=500, w=500, h=50, square_w=10, square_h=10\n )\n)\n# [(50, 500, 60, 510), (50, 510, 60, 520), (50, 520, 60, 530), (50, 530, 60, 540), (50, 540, 60, 550), (60, 500, 70, 510), (60, 510, 70, 520), (60, 520, 70, 530), (60, 530, 70, 540), (60, 540, 70, 550), (70, 500, 80, 510), (70, 510, 80, 520), (70, 520, 80, 530), (70, 530, 80, 540), (70, 540, 80, 550), (80, 500, 90, 510), (80, 510, 90, 520), (80, 520, 90, 530), (80, 530, 90, 540), (80, 540, 90, 550), (90, 500, 100, 510), (90, 510, 100, 520), (90, 520, 100, 530), (90, 530, 100, 540), (90, 540, 100, 550), (100, 500, 110, 510), (100, 510, 110, 520), (100, 520, 110, 530), (100, 530, 110, 540), (100, 540, 110, 550), (110, 500, 120, 510), (110, 510, 120, 520), (110, 520, 120, 530), (110, 530, 120, 540), (110, 540, 120, 550), (120, 500, 130, 510), (120, 510, 130, 520), (120, 520, 130, 530), (120, 530, 130, 540), (120, 540, 130, 550), (130, 500, 140, 510), (130, 510, 140, 520), (130, 520, 140, 530), (130, 530, 140, 540), (130, 540, 140, 550), (140, 500, 150, 510), (140, 510, 150, 520), (140, 520, 150, 530), (140, 530, 150, 540), (140, 540, 150, 550), (150, 500, 160, 510), (150, 510, 160, 520), (150, 520, 160, 530), (150, 530, 160, 540), (150, 540, 160, 550), (160, 500, 170, 510), (160, 510, 170, 520), (160, 520, 170, 530), (160, 530, 170, 540), (160, 540, 170, 550), (170, 500, 180, 510), (170, 510, 180, 520), (170, 520, 180, 530), (170, 530, 180, 540), (170, 540, 180, 550), (180, 500, 190, 510), (180, 510, 190, 520), (180, 520, 190, 530), (180, 530, 190, 540), (180, 540, 190, 550), (190, 500, 200, 510), (190, 510, 200, 520), (190, 520, 200, 530), (190, 530, 200, 540), (190, 540, 200, 550), (200, 500, 210, 510), (200, 510, 210, 520), (200, 520, 210, 530), (200, 530, 210, 540), (200, 540, 210, 550), (210, 500, 220, 510), (210, 510, 220, 520), (210, 520, 220, 530), (210, 530, 220, 540), (210, 540, 220, 550), (220, 500, 230, 510), (220, 510, 230, 520), (220, 520, 230, 530), (220, 530, 230, 540), (220, 540, 230, 550), (230, 500, 240, 510), (230, 510, 240, 520), (230, 520, 240, 530), (230, 530, 240, 540), (230, 540, 240, 550), (240, 500, 250, 510), (240, 510, 250, 520), (240, 520, 250, 530), (240, 530, 250, 540), (240, 540, 250, 550), (250, 500, 260, 510), (250, 510, 260, 520), (250, 520, 260, 530), (250, 530, 260, 540), (250, 540, 260, 550), (260, 500, 270, 510), (260, 510, 270, 520), (260, 520, 270, 530), (260, 530, 270, 540), (260, 540, 270, 550), (270, 500, 280, 510), (270, 510, 280, 520), (270, 520, 280, 530), (270, 530, 280, 540), (270, 540, 280, 550), (280, 500, 290, 510), (280, 510, 290, 520), (280, 520, 290, 530), (280, 530, 290, 540), (280, 540, 290, 550), (290, 500, 300, 510), (290, 510, 300, 520), (290, 520, 300, 530), (290, 530, 300, 540), (290, 540, 300, 550), (300, 500, 310, 510), (300, 510, 310, 520), (300, 520, 310, 530), (300, 530, 310, 540), (300, 540, 310, 550), (310, 500, 320, 510), (310, 510, 320, 520), (310, 520, 320, 530), (310, 530, 320, 540), (310, 540, 320, 550), (320, 500, 330, 510), (320, 510, 330, 520), (320, 520, 330, 530), (320, 530, 330, 540), (320, 540, 330, 550), (330, 500, 340, 510), (330, 510, 340, 520), (330, 520, 340, 530), (330, 530, 340, 540), (330, 540, 340, 550), (340, 500, 350, 510), (340, 510, 350, 520), (340, 520, 350, 530), (340, 530, 350, 540), (340, 540, 350, 550), (350, 500, 360, 510), (350, 510, 360, 520), (350, 520, 360, 530), (350, 530, 360, 540), (350, 540, 360, 550), (360, 500, 370, 510), (360, 510, 370, 520), (360, 520, 370, 530), (360, 530, 370, 540), (360, 540, 370, 550), (370, 500, 380, 510), (370, 510, 380, 520), (370, 520, 380, 530), (370, 530, 380, 540), (370, 540, 380, 550), (380, 500, 390, 510), (380, 510, 390, 520), (380, 520, 390, 530), (380, 530, 390, 540), (380, 540, 390, 550), (390, 500, 400, 510), (390, 510, 400, 520), (390, 520, 400, 530), (390, 530, 400, 540), (390, 540, 400, 550), (400, 500, 410, 510), (400, 510, 410, 520), (400, 520, 410, 530), (400, 530, 410, 540), (400, 540, 410, 550), (410, 500, 420, 510), (410, 510, 420, 520), (410, 520, 420, 530), (410, 530, 420, 540), (410, 540, 420, 550), (420, 500, 430, 510), (420, 510, 430, 520), (420, 520, 430, 530), (420, 530, 430, 540), (420, 540, 430, 550), (430, 500, 440, 510), (430, 510, 440, 520), (430, 520, 440, 530), (430, 530, 440, 540), (430, 540, 440, 550), (440, 500, 450, 510), (440, 510, 450, 520), (440, 520, 450, 530), (440, 530, 450, 540), (440, 540, 450, 550), (450, 500, 460, 510), (450, 510, 460, 520), (450, 520, 460, 530), (450, 530, 460, 540), (450, 540, 460, 550), (460, 500, 470, 510), (460, 510, 470, 520), (460, 520, 470, 530), (460, 530, 470, 540), (460, 540, 470, 550), (470, 500, 480, 510), (470, 510, 480, 520), (470, 520, 480, 530), (470, 530, 480, 540), (470, 540, 480, 550), (480, 500, 490, 510), (480, 510, 490, 520), (480, 520, 490, 530), (480, 530, 490, 540), (480, 540, 490, 550), (490, 500, 500, 510), (490, 510, 500, 520), (490, 520, 500, 530), (490, 530, 500, 540), (490, 540, 500, 550), (500, 500, 510, 510), (500, 510, 510, 520), (500, 520, 510, 530), (500, 530, 510, 540), (500, 540, 510, 550), (510, 500, 520, 510), (510, 510, 520, 520), (510, 520, 520, 530), (510, 530, 520, 540), (510, 540, 520, 550), (520, 500, 530, 510), (520, 510, 530, 520), (520, 520, 530, 530), (520, 530, 530, 540), (520, 540, 530, 550), (530, 500, 540, 510), (530, 510, 540, 520), (530, 520, 540, 530), (530, 530, 540, 540), (530, 540, 540, 550), (540, 500, 550, 510), (540, 510, 550, 520), (540, 520, 550, 530), (540, 530, 550, 540), (540, 540, 550, 550)]\n\n\n\t\n```\n\n\n\n\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "divides region into rectangles",
"version": "0.10",
"project_urls": {
"Homepage": "https://github.com/hansalemaos/divide_region_into_rectangles"
},
"split_keywords": [
"rectangles",
"divide"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "669df152cd600184b54d33fe54f3334a4bc048d82727133e956d6d10c58fe6be",
"md5": "d7f344936c71c7b7b4b3c52e07edd21e",
"sha256": "f4ca26fe8b16a0c7439fa014a2f3005f3eccd5f7eb4088ebff31425599cb6be5"
},
"downloads": -1,
"filename": "divide_region_into_rectangles-0.10-py3-none-any.whl",
"has_sig": false,
"md5_digest": "d7f344936c71c7b7b4b3c52e07edd21e",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": null,
"size": 7084,
"upload_time": "2023-01-04T06:31:11",
"upload_time_iso_8601": "2023-01-04T06:31:11.301192Z",
"url": "https://files.pythonhosted.org/packages/66/9d/f152cd600184b54d33fe54f3334a4bc048d82727133e956d6d10c58fe6be/divide_region_into_rectangles-0.10-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "1f01c557720b7b3b0a800ef48d89caa695b3ed98f0efbfe57aba0cbb6a02d245",
"md5": "9a549e426eb2e9721e361db0ac3a4e0e",
"sha256": "df70d8d72db7dde952fbff953a353f8814228d0b058f9bb29bfa63457b9cae7f"
},
"downloads": -1,
"filename": "divide_region_into_rectangles-0.10.tar.gz",
"has_sig": false,
"md5_digest": "9a549e426eb2e9721e361db0ac3a4e0e",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 5355,
"upload_time": "2023-01-04T06:31:13",
"upload_time_iso_8601": "2023-01-04T06:31:13.099249Z",
"url": "https://files.pythonhosted.org/packages/1f/01/c557720b7b3b0a800ef48d89caa695b3ed98f0efbfe57aba0cbb6a02d245/divide_region_into_rectangles-0.10.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2023-01-04 06:31:13",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "hansalemaos",
"github_project": "divide_region_into_rectangles",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"requirements": [],
"lcname": "divide-region-into-rectangles"
}