Metadata-Version: 2.1
Name: pywebcanvas
Version: 0.3.0
Summary: A library that allows users to interact with the HTML Canvas with 100% Python + HTML.
Home-page: https://gitlab.com/imbev/pywebcanvas
License: LGPL-3.0-or-later
Keywords: pyscript,web,canvas
Author: Isaac Beverly
Requires-Python: >=3.8,<4.0
Classifier: License :: OSI Approved :: GNU Lesser General Public License v3 or later (LGPLv3+)
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Requires-Dist: colour (>=0.1.5,<0.2.0)
Requires-Dist: typer (>=0.4.1,<0.5.0)
Project-URL: Repository, https://gitlab.com/imbev/pywebcanvas.git
Description-Content-Type: text/markdown

# pywebcanvas
pywebcanvas is a library that allows users to interact with the HTML Canvas with 100% Python + HTML.

## Getting Started
Just add the following to an html file and you are ready to go!

Between the head tags, add pyscript and pywebcanvas:
```html
<link rel="stylesheet" href="https://pyscript.net/alpha/pyscript.css" />                                                         
<script defer src="https://pyscript.net/alpha/pyscript.js"></script>
<py-env>
  - pywebcanvas
</py-env>
```

In the body, you can customize the following:
```python
<py-script>
import pywebcanvas as pwc                                                                                                            

canvas = pwc.Canvas(800, 600)                                                                                                        
canvas.background.fill("blue")                                                                                                       
text = pwc.Text(text="Hello World from pywebcanvas!", x=100, y=100, size=25, color="yellow")                                         
canvas.render(text)
</py-script>
```

## Documentation
Checkout the following to learn how to use this project:
- [pywebcanvas](https://gitlab.com/imbev/pywebcanvas)
- [pyscript](https://github.com/pyscript/pyscript)
- [pyodide](https://readthedocs.org/projects/pyodide/downloads/pdf/latest/)
- [python](https://docs.python.org/3/)
- [html](https://developer.mozilla.org/en-US/docs/Web/HTML)

## Credits
This project is made possible by the developers of pyscript, pyodide, and many others.
Licensed under [LGPL-3.0-or-later](https://gitlab.com/imbev/pywebcanvas/-/blob/master/LICENSE.md)
Copyright (C) 2022 Isaac Beverly

