Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > fr.comp.lang.python > #3198
| Path | csiph.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail |
|---|---|
| From | "Pascal J. Bourguignon" <pjb@informatimago.com> |
| Newsgroups | fr.comp.lang.python |
| Subject | Re: Caraxtères graphiques |
| Date | Wed, 29 May 2019 15:48:23 +0200 |
| Organization | Informatimago |
| Lines | 54 |
| Message-ID | <m24l5d2wyg.fsf@despina.home> (permalink) |
| References | <b26e5faa-ae7b-463d-816e-995a08ac09e6@googlegroups.com> <m28sup2xog.fsf@despina.home> |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset=iso-8859-1 |
| Content-Transfer-Encoding | 8bit |
| X-Trace | individual.net gCqRPJ40ell/Nu22kikxvQ/Ql9KOziLfmJ7Vc2pSVc51ETszBb |
| Cancel-Lock | sha1:MjQ5YzUwMTA0ZjBhMmRjOGNjNjY3NzAwZDdmMDhlZDc5NmE5MmIxMQ== sha1:6FQa+igQdKTnnTykVc5kG7GYbiI= |
| Face | iVBORw0KGgoAAAANSUhEUgAAADAAAAAwAQMAAABtzGvEAAAABlBMVEUAAAD///+l2Z/dAAAA oElEQVR4nK3OsRHCMAwF0O8YQufUNIQRGIAja9CxSA55AxZgFO4coMgYrEDDQZWPIlNAjwq9 033pbOBPtbXuB6PKNBn5gZkhGa86Z4x2wE67O+06WxGD/HCOGR0deY3f9Ijwwt7rNGNf6Oac l/GuZTF1wFGKiYYHKSFAkjIo1b6sCYS1sVmFhhhahKQssRjRT90ITWUk6vvK3RsPGs+M1RuR mV+hO/VvFAAAAABJRU5ErkJggg== |
| X-Accept-Language | fr, es, en |
| User-Agent | Gnus/5.13 (Gnus v5.13) Emacs/26.1 (darwin) |
| Xref | csiph.com fr.comp.lang.python:3198 |
Show key headers only | View raw
"Pascal J. Bourguignon" <pjb@informatimago.com> writes:
> Heu Bord <heubord@gmail.com> writes:
>
>> Salut à tous
>> Je suis débutant en python. Je veux écrit un petit script qui dessine les caractères et les affiche comme tel.
>> Je voudrais avoir une piste
Aussi, si ce qui t'interesse c'est simplement la partie dessin des
caractères, on peut faire sans la complexité de la partie graphique.
Un de mes premier programme consistait à afficher des textes (des mots)
hébreux sur un terminal ASCII, non-graphique, en "ASCII-Art".
Comme le programme banner.
$ banner Salut
&&& && &
& & & &
& &&&& & & & &&&&&
& & & & & &
& &&&&& & & & &
& & & & & & & &
&&& &&&& & &&& &&&& & &&
Les caractères peuvent être définis "graphiquement":
letter["S"]=[
" &&& ",
"& & ",
" & ",
" & ",
" & ",
"& & ",
" &&& "]
Ou tu peux les dessiner toi-même à partir d'une autre description
(vectorielle, ou autre). Il suffit de definir une classe
AsciiArtImage qui a un tableau de chaînes, et des méthodes
"graphiques" pour les modifier:
aai.set_pixel(x,y,"&")
aai.draw_line(x0,y0,x1,y1,"*")
aai.draw_arc(x,y,r,theta0,theta1,"*")
aai.print()
etc.
--
__Pascal J. Bourguignon__
http://www.informatimago.com
Back to fr.comp.lang.python | Previous | Next — Previous in thread | Find similar
Caraxtères graphiques Heu Bord <heubord@gmail.com> - 2019-05-28 15:58 -0700
Re: Caraxtères graphiques Nicolas <nicolasp@aaton.com> - 2019-05-29 08:58 +0200
Re: Caraxtères graphiques "Pascal J. Bourguignon" <pjb@informatimago.com> - 2019-05-29 15:32 +0200
Re: Caraxtères graphiques "Pascal J. Bourguignon" <pjb@informatimago.com> - 2019-05-29 15:48 +0200
csiph-web