Education & JIIAF

ChatGPT4가 그린 잭슨 폴록 by SimEunlog

Admin
16 Apr 2023
Views 111

ChatGPT4가 그린 잭슨 폴록

Jackson Pollock's "number1 (Lavender Mist)


ChatGPT4에게 <Jackson Pollock's "number1 (Lavender Mist)>에 대한 대화를 나누며 충분히 인식 시킨 후, 

Colab으로 코드를 작성하게 하고, 상기 좌측 그림을 출력했다. 



Jackson Pollock's "number1 (Lavender Mist)"


import matplotlib.pyplot as plt

import numpy as np


# Create a new figure and set its size

fig = plt.figure(figsize=(8, 8))


# Define the number of dots to generate

num_dots = 10000


# Generate random x and y coordinates for the dots

x = np.random.uniform(0, 1, num_dots)

y = np.random.uniform(0, 1, num_dots)


# Define the colors for the dots

colors = np.random.uniform(0, 1, (num_dots, 3))


# Define the size of the dots

sizes = np.random.uniform(50, 200, num_dots)


# Plot the dots with the defined colors and sizes

plt.scatter(x, y, s=sizes, c=colors, alpha=0.5)


# Set the background color to lavender

fig.patch.set_facecolor((0.9, 0.9, 0.98))


# Add a title to the plot

plt.title("Number 1 (Lavender Mist)")


# Show the plot

plt.show()