OpenArt Logo
Sign in

A

ALL INDIA FRIENDS

Made by: AI Filters
Style: Anime
Creative Level: 0
Width: 1728
Height: 2336
Original image

Create your first image using OpenArt.

With over 100+ models and styles to choose from, you can create stunning images.

More images like this
Prompt: create cient server chat diagram
Prompt: draw the block diagram of opportinity and issue of of electrical v2G
Prompt: from PIL import Image, ImageDraw, ImageFont

# Create a blank image with white background
width, height = 1000, 600
image = Image.new('RGB', (width, height), 'white')
draw = ImageDraw.Draw(image)

# Set up basic font
font_path = "/usr/share/fonts/truetype/dejavu/DejaVuSans-Bold.ttf"
title_font = ImageFont.truetype(font_path, 16)
subtitle_font = ImageFont.truetype(font_path, 14)
text_font = ImageFont.truetype(font_path, 12)

# Title
draw.text((10, 10), "Updated Class Diagram for 'Create Title' Use Case", font=title_font, fill='black')

# Classes and Attributes
classes = {
    "Title": ["+ titleID: int", "+ titleName: string", "+ createDate: date", "+ getDetails(): string", "+ setDetails(details: string): void"],
    "Movie": ["+ director: string", "+ duration: int", "+ getDetails(): string", "+ setDetails(details: string): void"],
    "Game": ["+ genre: string", "+ platform: string", "+ getDetails(): string", "+ setDetails(details: string): void"],
    "Music": ["+ artist: string", "+ album: string", "+ getDetails(): string", "+ setDetails(details: string): void"],
    "TitleFactory": ["+ createTitle(type: string, details: string): Title", "+ createMovie(details: string): Movie", "+ createGame(details: string): Game", "+ createMusic(details: string): Music"]
}

# Positions for the classes
positions = {
    "Title": (50, 50),
    "Movie": (50, 200),
    "Game": (350, 200),
    "Music": (650, 200),
    "TitleFactory": (350, 400)
}

# Draw classes
for class_name, attributes in classes.items():
    x, y = positions[class_name]
    draw.rectangle((x, y, x+250, y+25), outline='black', width=2)
    draw.text((x+5, y+5), class_name, font=subtitle_font, fill='black')
    
    for i, attribute in enumerate(attributes):
        draw.text((x+5, y+35+i*20), attribute, font=text_font, fill='black')

# Save the image
image_path = "updated_class_diagram.png"
image.save(image_path)
image.show()  # This will display the image if the environment supports it
Prompt: ơ đồ lớp (Class Diagram): Minh họa các lớp chính trong hệ thống như Book, Reader, và Transaction, cùng với các thuộc tính và phương thức tương ứng. Sơ đồ cũng mô tả mối quan hệ giữa các lớp.
Prompt: Create a flowchart depicting the different internal and external communication channels inside a business organisation and the flow of information.
Prompt: Give me a flow chart using an aurdino with following sensors for a class monitoring robot 
Camera sensors
Microphone sensors 
Proximity sensors
Motion sensors
Infrared sensors