Procedurally generated video of stars and clouds moving using a parallax effect. This video actually consists of multiple pieces of procedurally generated art combined together. These individual pa...
Procedurally generated video of stars and clouds moving using a parallax effect.
This video actually consists of multiple pieces of procedurally generated art combined together. These individual parts are the star and cloud textures, the code that animates them and the Bézier curve gradients that add colour.
I created this art as a part of Spaceships, a free/libre video game that I created. The game and this art are created in the Rust programming language and using the glium crate for rendering the video (this is a safe abstraction to OpenGL).
Each individual star texture is generated from four glowing lines that intersect the centre of the texture. I was inspired by GIMP's sparkle plugin on individual pixels when making this.
The clouds are generated using Perlin noise in a similar way to how
Today we want to generate this star like shape using sums of trigeometric functions sin and cos:
Function:
undefined
f(x) = x/57 + x**3/19
where x**3 is x^3 = x*x*x written in python
To calculate the x and y coordinate of the nth. step:
undefined
sx(n) = sum((75*cos(2*pi*f(i)) for i in range(n)))
sy(n) = sum((75*sin(2*pi*f(i)) for i in range(n)))
To render this with pythons turtle library, the following code can be used.
python
from math import cos, sin, pi, tan
def f(x):
form = x/57 + x**3/19
return form
def seq(fu):
r = 75 # "zoom" level, kinda arbitrary choice so you can see it well
s = [0, 0]
for i in range(10000):
s[0] += r
Inspired by biological systems, evolutionary algorithms model the patterns of multi-generational evolution in order to unearth unique ideas. They work by generating a vast number of potential solutions to a particular problem and then pitting them against each other in a process akin natural selecti...
A prototype of the project of virtual breeding of digital plants by crossing. Each plant has a genome, which is an array of numbers. By crossing plants (mixing their genome), we get a new kind of plant. In this way, you can get very interesting and unusual results.
Summary generated by claude.ai from the video transcript:
A generative art project to create abstract images of imaginary plants. The creator starts with a genome represented as a sequence of numbers that gets fed into an algorithm to generate plant images. By evolving the genomes through processes like mutation and crossover, new plant images emerge. The creator discusses the challenges of defining an objective fitness function, since beauty is subjective. Without a fitness function for natural selection, the creator resorts to artificial selection by manually choosing genomes to crossover. The resulting plants have unique, imaginary q