Pour envoyer visuellement un emoji, choisir le numéro voulu.
Pour en envoyer un autre, tapez sur la touche “Retour” puis par exemple » emo(4)
def nw(): lett="ABCDEFGHIJKLMNOP" img=gimp.image_list()[0] drw = pdb.gimp_image_active_drawable(img) if not(pdb.gimp_drawable_is_indexed(drw)): pdb.gimp_convert_indexed(img, 0, 0, 16, 0, 1, 0) im="" pal=[] c=0 for i in range(112*16): v=list(pdb.gimp_image_pick_color(img,drw,i%112,i//112,1,0,0))[:-1] if v not in pal: pal.append(v) cour = pal.index(v) if i==0 : prec = cour if prec != cour and i>0: im+=lett[prec] if c>1: im+=str(c) c=1 prec = cour else: c+=1 print "pal="+str(pal) print "im=\""+im+"\""
from kandinsky import * pal=[[249, 251, 249], [190, 204, 178], [120, 179, 91], [233, 161, 164], [233, 122, 120], [219, 51, 73], [250, 222, 169], [249, 198, 76], [172, 200, 228], [99, 169, 226], [246, 156, 75], [123, 89, 32], [56, 130, 186], [83, 128, 58], [62, 56, 58], [142, 60, 64]] im="A5BC4BA10DEF2EDA10GH4GA9DE2H2E2DA9GH4GA10IJ3I2A24BC8BA6DF8DA6GH4KH2BIJ2A2DEDF3K2F3DEDA4GH8GA6IJ5IJ2IA12I6A3BC10BA4DF10DA4GH4KLBJ5IDF6K2F6DA2GH10GA4IJ2MJ3IJ3IA11M6IABC12BA2DF12DA2GH5L3J5IEF6K2F6EAGH7GA2GHGA2IJ3MJ3IM2J2IA13IMJA2C14A2F14A2H6L2H2BJ3ADF6H2F6DAH7GA4GHA2JMIJ7M3JA13JMA2BC3NONC2NONC3BDF14DGH6KH3LBOLG2KF5H2F5KG2H7A2O2AGHGIJ2IJMJ4M2J3IA11IMIA2C3NO2NC2NO2NC3EF2OP2F4P2OF2EH10L2AL2H3KF3H4F3KH5L4HA2O2AGH2J3IM3J2M3J4A10IMIA3C5NC4NC5F4PO2F2O2PF4H3L2KH3KLABL2H25GA4GH2J3IM3J2M3J3IA4IJ3A2JMA4C16F4PO2F2O2PF4HL4H4LBAL3H26GA2GH3J5MJ4MJ3I2A6I2AIMJI3AC5N2C2N2C5EF3POPF2POPF3EH2BLH3KLBABL3H5LKH4KLH20J3M10JI2A5I2A2M6IBC5NO2NC5BDF14DGHJ2H2L2BA2L3KG2H3L8H3G2H2L2P6L2H2GIJ2MI8MJI6AMIA10C5N4C5A2F5P4F5A2BJ2BL2A2BL4HA2H3KL6KH3A2H3LEF4ELH3AI2M2IMIJ2IMIMJIA3I2AI3A9BC3NC4NC3BA2DF3O2P2O2F3DA2IJ3BABL5HGA2GH3KL4KH3GA2GH3EF4EH3GA2IJMI8MJIA2I2A15BC10BA4DF10DA3J4OL6HGA4GH10GA4GH2EF4EH2GA3I2JM8JI2A2JA17BC8BA6DF8DA4IJ3L5KHGA6GH8GA6GHKF4KHGA6IJ8IA4I3A17BC4BA10DEF2EDA7I2AGH4GA10GH4GA10GDE2DGA10IJ4I" def emo(e): p = 0 r = 0 i=0 while r<len(im): s = im[r] n="" r+=1 while r<len(im) and "9">=im[r] >="0": n+=im[r] r+=1 nb = 1 if n=="" else int(n) c = pal[ord(s)-65] for j in range(nb): p += 1 if ((p-1)%112)//16 == e-1: fill_rect(56+13*(i%16),13*(i//16),13,13,(c[0],c[1],c[2])) i+=1 print("1.Beurk\n2.Enerve\n3.MDR\n4.Adore") print("5.Moque\n6.Peur\n7.Fatigue") e = int(input("Choix ? ")) emo(e)