dispmanx-0.1.0
توضیحات
Libraty providing a buffer interface to your Raspberry Pi's GPU layer. Usable with pygame, PIL and other graphics libraries.
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | dispmanx-0.1.0 |
| نام | dispmanx |
| نسخه کتابخانه | 0.1.0 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | David Cooper |
| ایمیل نویسنده | david@dtcooper.com |
| آدرس صفحه اصلی | https://github.com/dtcooper/python-dispmanx |
| آدرس اینترنتی | https://pypi.org/project/dispmanx/ |
| مجوز | MIT |
<h1 align="center">
<a href="https://dtcooper.github.io/python-dispmanx/">DispmanX Bindings for Python</a>
</h1>
<p align="center">
<a href="https://dtcooper.github.io/python-dispmanx/">Documentation</a> |
<a href="https://pypi.org/project/dispmanx/">Python Package Index</a>
</p>
## Usage
Install with pip,
```bash
pip install dispmanx
```
Then try out this sample program using [pygame](https://www.pygame.org/docs/),
```python
from random import randint
import pygame
from dispmanx import DispmanX
def random_color_with_alpha():
return tuple(randint(0, 0xFF) for _ in range(3)) + (randint(0x44, 0xFF),)
display = DispmanX(pixel_format="RGBA")
surface = pygame.image.frombuffer(display.buffer, display.size, display.pixel_format)
clock = pygame.time.Clock()
for _ in range(20):
surface.fill(random_color_with_alpha())
display.update()
clock.tick(2)
```
Next stop: [the project's documentation](https://dtcooper.github.io/python-dispmanx/).
## License
This project is licensed under the [MIT License](https://opensource.org/licenses/MIT)
— see the [LICENSE](https://github.com/dtcooper/python-dispmanx/blob/main/LICENSE)
file for details.
## Final Note
**_...and remember kids, have fun!_**
نیازمندی
| مقدار | نام |
|---|---|
| <2) | numpy |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.9,<4.0 | Python |
نحوه نصب
نصب پکیج whl dispmanx-0.1.0:
pip install dispmanx-0.1.0.whl
نصب پکیج tar.gz dispmanx-0.1.0:
pip install dispmanx-0.1.0.tar.gz