craiyon logo

A technical diagram in a sketch style showing a female face with various eye, nose, and lip options, labeled with text in Turkish. Python code snippets are above and below.

A technical diagram in a sketch style showing a female face with various eye, nose, and lip options, labeled with text in Turkish. Python code snippets are above and below.

from PIL import Image, ImageDraw # Her kombinasyon için ayrı resim fonksiyonu def ciz_kombinasyon(dosya_adi, yuz_tip, aura_renk): img = Image.new('RGB', (500, 700), color=(245, 245, 245)) d = ImageDraw.Draw(img) # Başlık d.text((20, 20), f"{dosya_adi}", fill=(0,0,0)) # Yüz if yuz_tip == 'keskin': # Koç burcu yükselen + Koç Ay Boğa d.ellipse((150, 150, 350, 350), outline=(0,0,0), width=3) elif yuz_tip == 'hafif_dolgun': # Koç yükselen + Boğa Ay Kova d.ellipse((140, 150, 360, 360), outline=(0,0,0), width=3) elif yuz_tip == 'ince': # Koç yükselen + İkizler Ay Kova d.ellipse((160, 150, 340, 340), outline=(0,0,0), width=3) # Gözler d.ellipse((200, 220, 230, 250), outline=(0,0,0), width=2) d.ellipse((270, 220, 300, 250), outline=(0,0,0), width=2) # Burun ve ağız d.rectangle((240, 280, 260, 320), fill=(0,0,0)) d.line((200, 350, 300, 350), fill=(0,0,0), width=2) # Gövde ve duruş d.line((250, 350, 250, 600), fill=(0,0,0), width=5) d.line((250, 400, 180, 500), fill=(0,0,0), width=4) d.line((250, 400, 320, 500), fill=(0,0,0), width=4) d.line((250, 600, 180, 700), fill=(0,0,0), width=4) d.line((250, 600, 320, 700), fill=(0,0,0), width=4) # Aura (renk ile enerji farkını göster) d.ellipse((100, 100, 400, 400), outline=aura_renk, width=4) # Kaydet img.save(f"{dosya_adi}.png") print(f"Görsel kaydedildi: {dosya_adi}.png") # Kombinasyonları çiz ciz_kombinasyon("KocYukselen_KocAy_Boga", "keskin", "red") ciz_kombinasyon("KocYukselen_BogaAy_Kova", "hafif_dolgun", "blue") Mehr sehen