Circles – Stripes / Generative Art

Generative Art (PHP, SVG)


Starting materials are photos of flowers, which are converted into round circles. The production can be automated.
The centered design has more of an aesthetic of quiet, meditative contemplation. The SVG effects add another layer of surprising impacts to it.
The final product is a collage, which could be as a real-time live presentation in an Internet browser but is also suitable for a large print format.


Circles, 2023, Work in Progress

Excerpt from the PHP script: <?php try {     $timestamp = time();     $datum = date(‚d.m.Y-H.i‘, $timestamp);     $filename = ‚SVG-‚.$datum.‘.svg‘;     $f = fopen($filename, ‚wb‘);     if ($f === false) {         throw new Exception(‚Failed to open file for writing.‘);     }     $filename2 = ‚image/Bildx.jpg‘;     $image = imagecreatefromjpeg($filename2);     if ($image === false) {         throw new Exception(‚Failed to create image from file.‘);     }     $image_rgb= array();     $image_hex= array();     // transform in hex     for ($y = 0; $y < imagesy($image); $y++) {         $rgb = imagecolorat($image, 0, $y);         $r = ($rgb >> 16) & 0xFF;         $g = ($rgb >> 8) & 0xFF;         $b = $rgb & 0xFF;         $hex = sprintf(„#%02x%02x%02x“, $r, $g, $b);         array_push($image_hex, $hex);     }