
cepillo
Python
Publicado el 25 de Mayo del 2023 por Nano
563 visualizaciones desde el 25 de Mayo del 2023
cepillo de dientes con filamentos mas largos para limpieza entre dientes
from PIL import Image, ImageDraw
# Definir las dimensiones de la imagen
width = 500
height = 500
# Crear una nueva imagen con fondo blanco
image = Image.new("RGB", (width, height), "white")
draw = ImageDraw.Draw(image)
# Definir las coordenadas y dimensiones del cepillo de dientes
brush_width = 100
brush_height = 300
brush_x = (width - brush_width) // 2
brush_y = (height - brush_height) // 2
# Dibujar el cepillo de dientes
draw.rectangle((brush_x, brush_y, brush_x + brush_width, brush_y + brush_height), outline="black")
# Definir las coordenadas y dimensiones de los filamentos abatibles
filament_height = 50
filament_width = brush_width
filament_x = brush_x
filament_y = brush_y - filament_height
# Dibujar los filamentos abatibles
draw.rectangle((filament_x, filament_y, filament_x + filament_width, filament_y + filament_height), fill="black")
# Guardar la imagen en un archivo
image.save("cepillo_de_dientes.png", "PNG")
# Mostrar la imagen
Comentarios sobre la versión: 1.0 (0)
No hay comentarios