
cepillo
Python
Publicado el 25 de Mayo del 2023 por Nano
648 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 imagenwidth = 500height = 500# Crear una nueva imagen con fondo blancoimage = Image.new("RGB", (width, height), "white")
draw = ImageDraw.Draw(image)
# Definir las coordenadas y dimensiones del cepillo de dientesbrush_width = 100brush_height = 300brush_x = (width - brush_width) // 2
brush_y = (height - brush_height) // 2
# Dibujar el cepillo de dientesdraw.rectangle((brush_x, brush_y, brush_x + brush_width, brush_y + brush_height), outline="black")
# Definir las coordenadas y dimensiones de los filamentos abatiblesfilament_height = 50filament_width = brush_widthfilament_x = brush_xfilament_y = brush_y - filament_height
# Dibujar los filamentos abatiblesdraw.rectangle((filament_x, filament_y, filament_x + filament_width, filament_y + filament_height), fill="black")
# Guardar la imagen en un archivoimage.save("cepillo_de_dientes.png", "PNG")
# Mostrar la imagen
Comentarios sobre la versión: 1.0 (0)
No hay comentarios