# Turtle-Art-Manager
The Turtle-Art-Manager package provides Python classes for creating artistic drawings using Turtle graphics.
## Installation
You can install the Turtle-Art package using pip:
```bash
pip install turtle-art-manager
```
## Classes
### TurtleArt Class
The `TurtleArt` class serves as an abstract base class for creating various artistic shapes using Turtle graphics.
#### Usage
```python
from turtle import Screen, Turtle
from turtle_art_manager import TurtleArt
class MyArt(TurtleArt):
def _draw_art(self) -> None:
pass
# Example usage:
screen = Screen()
pen = Turtle()
artwork = MyArt(screen, pen)
artwork.draw()
screen.mainloop()
```
#### Methods
- **draw()**: Draws the artistic shape on the screen.
### Rectangle Class
The `Rectangle` class is a subclass of `TurtleArt` that allows you to draw rectangles on the screen.
#### Usage
```python
from turtle import Screen, Turtle
from turtle_art_manager import Rectangle
# Example usage:
screen = Screen()
pen = Turtle()
rectangle = Rectangle(screen, pen, width=150, height=80)
rectangle.draw(fill_color=True)
screen.mainloop()
```
### Circle Class
The `Circle` class is another subclass of `TurtleArt` that allows you to draw circles on the screen.
#### Usage
```python
from turtle import Screen, Turtle
from turtle_art_manager import Circle
# Example usage:
screen = Screen()
pen = Turtle()
circle = Circle(screen, pen, radius=50)
circle.draw(fill_color=True)
screen.mainloop()
```
#### Attributes
- **width** (int): Width of the rectangle.
- **height** (int): Height of the rectangle.
Raw data
{
"_id": null,
"home_page": "https://github.com/FrickTzy/Turtle-Art",
"name": "turtle-art-manager",
"maintainer": null,
"docs_url": null,
"requires_python": null,
"maintainer_email": null,
"keywords": "python, turtle, python turtle, python art",
"author": "FrickTzy (Kurt Arnoco)",
"author_email": null,
"download_url": "https://files.pythonhosted.org/packages/d5/e2/7767580b4d12e98bfe89012eaaa39f11d35ebf89b5a1a152ed7faa536172/turtle_art_manager-1.5.tar.gz",
"platform": null,
"description": "# Turtle-Art-Manager\r\n\r\nThe Turtle-Art-Manager package provides Python classes for creating artistic drawings using Turtle graphics.\r\n\r\n## Installation\r\n\r\nYou can install the Turtle-Art package using pip:\r\n\r\n```bash\r\npip install turtle-art-manager\r\n```\r\n\r\n## Classes\r\n\r\n### TurtleArt Class\r\n\r\nThe `TurtleArt` class serves as an abstract base class for creating various artistic shapes using Turtle graphics.\r\n\r\n#### Usage\r\n\r\n```python\r\nfrom turtle import Screen, Turtle\r\nfrom turtle_art_manager import TurtleArt\r\n\r\n\r\nclass MyArt(TurtleArt):\r\n def _draw_art(self) -> None:\r\n pass\r\n\r\n\r\n# Example usage:\r\nscreen = Screen()\r\npen = Turtle()\r\nartwork = MyArt(screen, pen)\r\nartwork.draw()\r\nscreen.mainloop()\r\n```\r\n\r\n#### Methods\r\n\r\n- **draw()**: Draws the artistic shape on the screen.\r\n\r\n### Rectangle Class\r\n\r\nThe `Rectangle` class is a subclass of `TurtleArt` that allows you to draw rectangles on the screen.\r\n\r\n#### Usage\r\n\r\n```python\r\nfrom turtle import Screen, Turtle\r\nfrom turtle_art_manager import Rectangle\r\n\r\n# Example usage:\r\nscreen = Screen()\r\npen = Turtle()\r\nrectangle = Rectangle(screen, pen, width=150, height=80)\r\nrectangle.draw(fill_color=True)\r\nscreen.mainloop()\r\n```\r\n\r\n### Circle Class\r\n\r\nThe `Circle` class is another subclass of `TurtleArt` that allows you to draw circles on the screen.\r\n\r\n#### Usage\r\n\r\n```python\r\nfrom turtle import Screen, Turtle\r\nfrom turtle_art_manager import Circle\r\n\r\n# Example usage:\r\nscreen = Screen()\r\npen = Turtle()\r\ncircle = Circle(screen, pen, radius=50)\r\ncircle.draw(fill_color=True)\r\nscreen.mainloop()\r\n```\r\n\r\n#### Attributes\r\n\r\n- **width** (int): Width of the rectangle.\r\n- **height** (int): Height of the rectangle.\r\n\r\n",
"bugtrack_url": null,
"license": null,
"summary": "A package for making turtle art",
"version": "1.5",
"project_urls": {
"Homepage": "https://github.com/FrickTzy/Turtle-Art"
},
"split_keywords": [
"python",
" turtle",
" python turtle",
" python art"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "c9bac1e2b26e8f3efc7b4c0bed24d7188b692c29161b353c15fa8b2ad7c27431",
"md5": "d06ef969648e4d42afbe15b05d1f6c12",
"sha256": "c7f8d1338a4a6e30f26a048d52db354e486bf934dea299253cfc2a0676af5185"
},
"downloads": -1,
"filename": "turtle_art_manager-1.5-py3-none-any.whl",
"has_sig": false,
"md5_digest": "d06ef969648e4d42afbe15b05d1f6c12",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": null,
"size": 6438,
"upload_time": "2024-07-01T06:44:46",
"upload_time_iso_8601": "2024-07-01T06:44:46.317006Z",
"url": "https://files.pythonhosted.org/packages/c9/ba/c1e2b26e8f3efc7b4c0bed24d7188b692c29161b353c15fa8b2ad7c27431/turtle_art_manager-1.5-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "d5e27767580b4d12e98bfe89012eaaa39f11d35ebf89b5a1a152ed7faa536172",
"md5": "a14a4081b10f18c20dbbc8edac6f3f1c",
"sha256": "a3bb4193f80da9d6e646ba6968ccd202f76d7b59901a56ce40e0e34c9464a961"
},
"downloads": -1,
"filename": "turtle_art_manager-1.5.tar.gz",
"has_sig": false,
"md5_digest": "a14a4081b10f18c20dbbc8edac6f3f1c",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 3609,
"upload_time": "2024-07-01T06:44:49",
"upload_time_iso_8601": "2024-07-01T06:44:49.534200Z",
"url": "https://files.pythonhosted.org/packages/d5/e2/7767580b4d12e98bfe89012eaaa39f11d35ebf89b5a1a152ed7faa536172/turtle_art_manager-1.5.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-07-01 06:44:49",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "FrickTzy",
"github_project": "Turtle-Art",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"lcname": "turtle-art-manager"
}