Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Apprendre Analyzing Generative Art Outputs | Creative Coding and Generative Art
Python for Creators and Makers

bookAnalyzing Generative Art Outputs

When creating generative art, you are not just producing random images—you are building systems that generate visual outputs based on rules and parameters. Evaluating generative art outputs involves looking for patterns, balance, and visual interest. You should consider whether the generated images feel harmonious or chaotic, if there is enough variation to keep the viewer engaged, and if the outputs are visually appealing. Sometimes, subtle patterns emerge when you run your code multiple times or adjust the parameters, and spotting these can help you refine your creative process. Pay attention to the repetition, symmetry, randomness, and overall composition of your outputs. These observations will guide your decisions on how to tweak your code for more interesting results.

123456789101112131415161718192021
import matplotlib.pyplot as plt import numpy as np # Parameter: number of elements controls complexity num_elements = 30 angles = np.linspace(0, 2 * np.pi, num_elements, endpoint=False) radii = np.linspace(0.2, 1, num_elements) colors = plt.cm.viridis(np.linspace(0, 1, num_elements)) fig, ax = plt.subplots(figsize=(6, 6)) ax.set_aspect('equal') ax.axis('off') for angle, radius, color in zip(angles, radii, colors): x = radius * np.cos(angle) y = radius * np.sin(angle) circle = plt.Circle((x, y), 0.08, color=color, alpha=0.7) ax.add_patch(circle) plt.show()
copy

Adjusting the num_elements parameter in the code above has a significant impact on the pattern's appearance. With a lower value, the pattern is sparse and simple; increasing it creates more densely packed, intricate designs. By experimenting with this parameter, you can discover new visual effects and decide what level of complexity best suits your creative vision. This process of tweaking and observing is at the heart of generative art: each change can lead to unexpected and inspiring results, allowing you to explore a wide range of possibilities with just a few adjustments.

12345678910111213141516171819202122
import matplotlib.pyplot as plt import numpy as np num_elements = 30 angles = np.linspace(0, 2 * np.pi, num_elements, endpoint=False) radii = np.linspace(0.2, 1, num_elements) # Try a different colormap and increase spacing colors = plt.cm.plasma(np.linspace(0, 1, num_elements)) spacing = 0.12 # Increased element spacing fig, ax = plt.subplots(figsize=(6, 6)) ax.set_aspect('equal') ax.axis('off') for angle, radius, color in zip(angles, radii, colors): x = (radius + spacing) * np.cos(angle) y = (radius + spacing) * np.sin(angle) circle = plt.Circle((x, y), 0.08, color=color, alpha=0.8) ax.add_patch(circle) plt.show()
copy

1. Why is it important to analyze generative art outputs?

2. How can tweaking parameters lead to new creative discoveries?

3. Fill in the blank: To make a pattern more complex, you can increase the ________ parameter.

question mark

Why is it important to analyze generative art outputs?

Select the correct answer

question mark

How can tweaking parameters lead to new creative discoveries?

Select the correct answer

question-icon

Fill in the blank: To make a pattern more complex, you can increase the ________ parameter.

Tout était clair ?

Comment pouvons-nous l'améliorer ?

Merci pour vos commentaires !

Section 3. Chapitre 6

Demandez à l'IA

expand

Demandez à l'IA

ChatGPT

Posez n'importe quelle question ou essayez l'une des questions suggérées pour commencer notre discussion

Suggested prompts:

What other parameters can I adjust to change the visual output?

Can you explain how different colormaps affect the appearance?

How can I add more variation or complexity to the pattern?

bookAnalyzing Generative Art Outputs

Glissez pour afficher le menu

When creating generative art, you are not just producing random images—you are building systems that generate visual outputs based on rules and parameters. Evaluating generative art outputs involves looking for patterns, balance, and visual interest. You should consider whether the generated images feel harmonious or chaotic, if there is enough variation to keep the viewer engaged, and if the outputs are visually appealing. Sometimes, subtle patterns emerge when you run your code multiple times or adjust the parameters, and spotting these can help you refine your creative process. Pay attention to the repetition, symmetry, randomness, and overall composition of your outputs. These observations will guide your decisions on how to tweak your code for more interesting results.

123456789101112131415161718192021
import matplotlib.pyplot as plt import numpy as np # Parameter: number of elements controls complexity num_elements = 30 angles = np.linspace(0, 2 * np.pi, num_elements, endpoint=False) radii = np.linspace(0.2, 1, num_elements) colors = plt.cm.viridis(np.linspace(0, 1, num_elements)) fig, ax = plt.subplots(figsize=(6, 6)) ax.set_aspect('equal') ax.axis('off') for angle, radius, color in zip(angles, radii, colors): x = radius * np.cos(angle) y = radius * np.sin(angle) circle = plt.Circle((x, y), 0.08, color=color, alpha=0.7) ax.add_patch(circle) plt.show()
copy

Adjusting the num_elements parameter in the code above has a significant impact on the pattern's appearance. With a lower value, the pattern is sparse and simple; increasing it creates more densely packed, intricate designs. By experimenting with this parameter, you can discover new visual effects and decide what level of complexity best suits your creative vision. This process of tweaking and observing is at the heart of generative art: each change can lead to unexpected and inspiring results, allowing you to explore a wide range of possibilities with just a few adjustments.

12345678910111213141516171819202122
import matplotlib.pyplot as plt import numpy as np num_elements = 30 angles = np.linspace(0, 2 * np.pi, num_elements, endpoint=False) radii = np.linspace(0.2, 1, num_elements) # Try a different colormap and increase spacing colors = plt.cm.plasma(np.linspace(0, 1, num_elements)) spacing = 0.12 # Increased element spacing fig, ax = plt.subplots(figsize=(6, 6)) ax.set_aspect('equal') ax.axis('off') for angle, radius, color in zip(angles, radii, colors): x = (radius + spacing) * np.cos(angle) y = (radius + spacing) * np.sin(angle) circle = plt.Circle((x, y), 0.08, color=color, alpha=0.8) ax.add_patch(circle) plt.show()
copy

1. Why is it important to analyze generative art outputs?

2. How can tweaking parameters lead to new creative discoveries?

3. Fill in the blank: To make a pattern more complex, you can increase the ________ parameter.

question mark

Why is it important to analyze generative art outputs?

Select the correct answer

question mark

How can tweaking parameters lead to new creative discoveries?

Select the correct answer

question-icon

Fill in the blank: To make a pattern more complex, you can increase the ________ parameter.

Tout était clair ?

Comment pouvons-nous l'améliorer ?

Merci pour vos commentaires !

Section 3. Chapitre 6
some-alt