Skip to main content

Una librería para dibujar píxeles usando el framebuffer de Linux en Python.

Project description

FrameDirect

FrameDirect es una librería en Python para dibujar píxeles directamente en el framebuffer de Linux. Perfecta para proyectos que necesitan control directo del hardware gráfico sin depender de entornos gráficos como X11 o Wayland.

Características

  • Acceso directo al framebuffer /dev/fb0
  • Dibujo de píxeles a bajo nivel
  • Compatible con pantallas de 32 bits de color
  • Colores predefinidos para facilitar el uso
  • Colores en formato ARGB (en hexadecimal)
  • Simple, ligera y sin dependencias pesadas

Requisitos

  • Linux con framebuffer habilitado y acceso a /dev/fb0
  • Python 3.6 o superior

Instalación

Puedes instalar la libreria desde PyPi:

pip install FrameDirect

O directamente desde GitHub:

pip install git+https://github.com/gneval9/FrameDirect.git

Uso básico

import framedirect

framedirect.init()                                              # Inicializa el framebuffer
framedirect.resolution()                                        # Imprime la resolución de la pantalla (Variables: screen_width y screen_height)
                                                                 
framedirect.draw_pixel(100, 100, framedirect.RED)               # Dibuja un píxel rojo en (100, 100)
framedirect.draw_line(200, 200, 300, 300, framedirect.GREEN)    # Dibuja una línea verde de (200, 200) a (300, 300)
framedirect.draw_circle(400, 400, 50, 0xFF0000FF)               # Dibuja un circulo azul en (400, 400) con radio 50px
framedirect.fill(framedirect.BLACK)				# Llena la pantalla con el color negro

framedirect.update()						# Actualiza el framebuffer

framedirect.close()                                             # Cierra el framebuffer

Licencia

MIT License

Autor

Hecho con amor por gneval9 Software <3 Contacto: gneval99@gmail.com

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

framedirect-0.6.0.tar.gz (3.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

framedirect-0.6.0-py3-none-any.whl (4.1 kB view details)

Uploaded Python 3

File details

Details for the file framedirect-0.6.0.tar.gz.

File metadata

  • Download URL: framedirect-0.6.0.tar.gz
  • Upload date:
  • Size: 3.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.5

File hashes

Hashes for framedirect-0.6.0.tar.gz
Algorithm Hash digest
SHA256 1fdd99947863125f526981bdc7af05222c82a538c38507f8df483f6d2bfea6f2
MD5 1e1b3e0e71544154536267ffff8e7534
BLAKE2b-256 bea8756e34e1f3e023ac5e2fb01e57ed66a71a0f6bd5b755598f6bb6a87345e0

See more details on using hashes here.

File details

Details for the file framedirect-0.6.0-py3-none-any.whl.

File metadata

  • Download URL: framedirect-0.6.0-py3-none-any.whl
  • Upload date:
  • Size: 4.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.5

File hashes

Hashes for framedirect-0.6.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f4beafe62f69a3ec70639473190078e7d8f78dc0daa67d7f8d01194eae9a808a
MD5 030198a173e393e2fb05ef71a74ce542
BLAKE2b-256 1d06d4c6177e439573d68b8dee054fc8d73c9f79409218c18c5257a64c0a4e1c

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page