[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
pix.el (was: Re: bad.el - ascii art games [package] [screenshots] [video
From: |
Emanuel Berg |
Subject: |
pix.el (was: Re: bad.el - ascii art games [package] [screenshots] [video]) |
Date: |
Fri, 11 Oct 2024 02:25:41 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) |
Richard Stallman wrote:
> Is its display done using characters, like
> `animate-birthday-present', or can it be draw in terms
> of pixels?
30 000 pixels in 3.76 seconds, Python Pygame SDL2 C version
from Elisp.
We need a much better frontend and backend tho, possibly
backends for other libraries if people prefer them - those
will be up to them to write, of course.
;;; -*- lexical-binding: t -*-
;;
;; this file:
;; https://dataswamp.org/~incal/pix/pix.el
;;
;; created:
;; 2024-10-10
;;
;; howto:
;; $ mkfifo f
;; $ pixel.py < f
;; (pix)
;; 30 000 px in 3.76 s
(defun pix ()
(let ((pxls 30000)
(beg (float-time))
(end))
(dotimes (_ pxls)
(write-region "1\n" nil "./f"))
(setq end (float-time))
(message "%d px in %.2f s" pxls (- end beg))))
;; (pix)
(provide 'pix)
--
underground experts united
https://dataswamp.org/~incal
- pix.el (was: Re: bad.el - ascii art games [package] [screenshots] [video]),
Emanuel Berg <=