Import matplotlib.pyplot as plt import numpy as np # Function to draw an anime
![import matplotlib.pyplot as plt
import numpy as np
# Function to draw an anime style cat def draw_anime_cat():
fig, ax = plt.subplots(figsize=(6,6))
# cat head = plt.Circle((0.5, 0.5), 0.3, color='lightgrey', ec='black')
ax.add_patch(head)
# Orelhas do gato
left_ear = plt.Polygon([[0.35, 0.75], [0.3, 0.9], [0.45, 0.85]], closed=True, color='lightgrey', ec='black')
right_ear = plt.Polygon([[0.65, 0.75], [0.7, 0.9], [0.55, 0.85]], closed=True, color='lightgrey', ec='black')
ax.add_patch(left_ear)
ax.add_patch(right_ear)
# Olhos do gato estilo anime
left_eye = plt.Circle((0.4, 0.55), 0.08, color='white', ec='black')
right_eye = plt.Circle((0.6, 0.55), 0.08, color='white', ec='black')
ax.add_patch(left_eye)
ax.add_patch(right_eye)
left_pupil = plt.Circle((0.4, 0.55), 0.03, color='black')
right_pupil = plt.Circle((0.6, 0.55), 0.03, color='black')
ax.add_patch(left_pupil)
ax.add_patch(right_pupil)
# Reflexos nos olhos
left_reflection = plt.Circle((0.41, 0.57), 0.015, color='white')
right_reflection = plt.Circle((0.61, 0.57), 0.015, color='white')
ax.add_patch(left_reflection)
ax.add_patch(right_reflection)
# Nariz do gato
nose = plt.Polygon([[0.48, 0.45], [0.52, 0.45], [0.5, 0.42]], closed=True, color='pink', ec='black')
ax.add_patch(nose)
# Boca do gato estilo anime
mouth_left = plt.Line2D([0.48, 0.47], [0.42, 0.40], color='black')
mouth_right = plt.Line2D([0.52, 0.53], [0.42, 0.40], color='black')
mouth_bottom = plt.Line2D([0.47, 0.53], [0.40, 0.40], color='black')
ax.add_line(mouth_left)
ax.add_line(mouth_right)
ax.add_line(mouth_bottom)
# Bigodes do gato
whiskers_left = [plt.Line2D([0.35, 0.45], [0.5, 0.45], color='black'),
plt.Line2D([0.35, 0.45], [0.4, 0.42], color='black'),
plt.Line2D([0.35, 0.45], [0.6, 0.48], color='black')]
whiske](https://image.cdn2.seaart.me/2024-07-07/cq52g45e878c73ca7uig/dc5b80a2411a6f66de283aef7589509f149735f6_high.webp)
import matplotlib.pyplot as plt import numpy as np # Function to draw an anime style cat def draw_anime_cat(): fig, ax = plt.subplots(figsize=(6,6)) # cat head = plt.Circle((0.5, 0.5), 0.3, color='lightgrey', ec='black') ax.add_patch(head) # Orelhas do gato left_ear = plt.Polygon([[0.35, 0.75], [0.3, 0.9], [0.45, 0.85]], closed=True, color='lightgrey', ec='black') right_ear = plt.Polygon([[0.65, 0.75], [0.7, 0.9], [0.55, 0.85]], closed=True, color='lightgrey', ec='black') ax.add_patch(left_ear) ax.add_patch(right_ear) # Olhos do gato estilo anime left_eye = plt.Circle((0.4, 0.55), 0.08, color='white', ec='black') right_eye = plt.Circle((0.6, 0.55), 0.08, color='white', ec='black') ax.add_patch(left_eye) ax.add_patch(right_eye) left_pupil = plt.Circle((0.4, 0.55), 0.03, color='black') right_pupil = plt.Circle((0.6, 0.55), 0.03, color='black') ax.add_patch(left_pupil) ax.add_patch(right_pupil) # Reflexos nos olhos left_reflection = plt.Circle((0.41, 0.57), 0.015, color='white') right_reflection = plt.Circle((0.61, 0.57), 0.015, color='white') ax.add_patch(left_reflection) ax.add_patch(right_reflection) # Nariz do gato nose = plt.Polygon([[0.48, 0.45], [0.52, 0.45], [0.5, 0.42]], closed=True, color='pink', ec='black') ax.add_patch(nose) # Boca do gato estilo anime mouth_left = plt.Line2D([0.48, 0.47], [0.42, 0.40], color='black') mouth_right = plt.Line2D([0.52, 0.53], [0.42, 0.40], color='black') mouth_bottom = plt.Line2D([0.47, 0.53], [0.40, 0.40], color='black') ax.add_line(mouth_left) ax.add_line(mouth_right) ax.add_line(mouth_bottom) # Bigodes do gato whiskers_left = [plt.Line2D([0.35, 0.45], [0.5, 0.45], color='black'), plt.Line2D([0.35, 0.45], [0.4, 0.42], color='black'), plt.Line2D([0.35, 0.45], [0.6, 0.48], color='black')] whiske
Generation Data
Registro
Prompts
Copiar prompts
import matplotlib
.
pyplot as plt
import numpy as np
# Function to draw an anime style cat def draw_anime_cat():
fig
,
ax = plt
.
subplots(figsize=(6
,
6))
# cat head = plt
.
Circle((0
.
5
,
0
.
5)
,
0
.
3
,
color='lightgrey'
,
ec='black')
ax
.
add_patch(head)
# Orelhas do gato
left_ear = plt
.
Polygon([[0
.
35
,
0
.
75]
,
[0
.
3
,
0
.
9]
,
[0
.
45
,
0
.
85]]
,
closed=True
,
color='lightgrey'
,
ec='black')
right_ear = plt
.
Polygon([[0
.
65
,
0
.
75]
,
[0
.
7
,
0
.
9]
,
[0
.
55
,
0
.
85]]
,
closed=True
,
color='lightgrey'
,
ec='black')
ax
.
add_patch(left_ear)
ax
.
add_patch(right_ear)
# Olhos do gato estilo anime
left_eye = plt
.
Circle((0
.
4
,
0
.
55)
,
0
.
08
,
color='white'
,
ec='black')
right_eye = plt
.
Circle((0
.
6
,
0
.
55)
,
0
.
08
,
color='white'
,
ec='black')
ax
.
add_patch(left_eye)
ax
.
add_patch(right_eye)
left_pupil = plt
.
Circle((0
.
4
,
0
.
55)
,
0
.
03
,
color='black')
right_pupil = plt
.
Circle((0
.
6
,
0
.
55)
,
0
.
03
,
color='black')
ax
.
add_patch(left_pupil)
ax
.
add_patch(right_pupil)
# Reflexos nos olhos
left_reflection = plt
.
Circle((0
.
41
,
0
.
57)
,
0
.
015
,
color='white')
right_reflection = plt
.
Circle((0
.
61
,
0
.
57)
,
0
.
015
,
color='white')
ax
.
add_patch(left_reflection)
ax
.
add_patch(right_reflection)
# Nariz do gato
nose = plt
.
Polygon([[0
.
48
,
0
.
45]
,
[0
.
52
,
0
.
45]
,
[0
.
5
,
0
.
42]]
,
closed=True
,
color='pink'
,
ec='black')
ax
.
add_patch(nose)
# Boca do gato estilo anime
mouth_left = plt
.
Line2D([0
.
48
,
0
.
47]
,
[0
.
42
,
0
.
40]
,
color='black')
mouth_right = plt
.
Line2D([0
.
52
,
0
.
53]
,
[0
.
42
,
0
.
40]
,
color='black')
mouth_bottom = plt
.
Line2D([0
.
47
,
0
.
53]
,
[0
.
40
,
0
.
40]
,
color='black')
ax
.
add_line(mouth_left)
ax
.
add_line(mouth_right)
ax
.
add_line(mouth_bottom)
# Bigodes do gato
whiskers_left = [plt
.
Line2D([0
.
35
,
0
.
45]
,
[0
.
5
,
0
.
45]
,
color='black')
,
plt
.
Line2D([0
.
35
,
0
.
45]
,
[0
.
4
,
0
.
42]
,
color='black')
,
plt
.
Line2D([0
.
35
,
0
.
45]
,
[0
.
6
,
0
.
48]
,
color='black')]
whiske
INFO
Checkpoint & LoRA

Checkpoint
Realisian
#Realista
#Fotografia
comentário(s)
0
0
0