Abstract Art Generator in Python/Pygame (with Source Code)
Source Code: https://github.com/Burakcoli/Abstract-Art-Generator
--Info--
Summary: A python program that generates abstract art with variety of styles, shapes, adjustable options and randomization, using pygame.
-Program Info-
Python version: 3.7.6, Packages used: pygame, pygame_gui, tkinter
In "Abstract Art Generator", we have two layers to work on. Each of these layers have 4 different adjustable options.
These are: Style, Shape, Complexity and Size
Also for each artwork, there are 20 unique color palettes to choose from. These color palettes have 4 different colors.
Before any shapes are drawn, one color from the color palette is chosen to be the background color, rest are left for shape colors.
-Style Options-
There are 7 style options, these are:
Chaotic: This is the most randomized option.
Striped Horizontal: With this layer style the shapes are forced to roughly line up on horizontal lines.
Striped Vertical: Same as the horizontal style but the shapes line up on vertical lines this time.
Mosaic: Whatever the shape is, they cover the screen with same amount of spacing between them.
Cornered: Shapes are forced to be drawn roughly on the corners.
Centered: Shapes are forced to be drawn roughlt on the center.
Empty: This option is there to make one shape art possible. Sometimes one shape is enough for an artwork.
Shape Options
There are 8 shapes to draw on your art, these are:
Lines, Circles, Sqaures, Hollow Polygons, Filled Polygons, Dots, Curves and Rings
The shapes are pretty self explanatory.
-Slider Options-
For the slider options, we have Complexity and Size.
Complexity: This corresponds to how complex the layer will be. More shapes, more randomization. This option is more absolute.
Size: This option changes the maximum size that the shapes can have, for that specific layer. This option is more flexible.
Note: While complexity works with all layer styles, size has an exception. For mosaic style, because the spacing is calculated by how many shapes has to be drawn, size option doesn't affect shapes with that style.
-Extra-
I have included an examples folder, and inside it there are 5 example abstract artworks. Just to show what can be done. And there is also an info.txt file in the folder that acts as a guide to create the same artworks yourself.
Make sure to have all the packages required installed, and keep the files in the same folder.
It might take a few seconds to fully run for the first time use. Use command prompt to run the .py file like this:
python art_generator.py
Что делает видео по-настоящему запоминающимся? Наверное, та самая атмосфера, которая заставляет забыть о времени. Когда вы заходите на RUVIDEO, чтобы посмотреть онлайн «Abstract Art Generator in Python/Pygame (with Source Code)», вы рассчитываете на нечто большее, чем просто загрузку плеера. И мы это понимаем. Контент такого уровня заслуживает того, чтобы его смотрели в HD 1080, без дрожания картинки и бесконечного буферизации.
Честно говоря, Rutube сегодня — это кладезь уникальных находок, которые часто теряются в общем шуме. Мы же вытаскиваем на поверхность самое интересное. Будь то динамичный экшн, глубокий разбор темы от любимого автора или просто уютное видео для настроения — всё это доступно здесь бесплатно и без лишних формальностей. Никаких «заполните анкету, чтобы продолжить». Только вы, ваш экран и качественный поток.
Если вас зацепило это видео, не забудьте взглянуть на похожие материалы в блоке справа. Мы откалибровали наши алгоритмы так, чтобы они подбирали контент не просто «по тегам», а по настроению и смыслу. Ведь в конечном итоге, онлайн-кинотеатр — это не склад файлов, а место, где каждый вечер можно найти свою историю. Приятного вам отдыха на RUVIDEO!
Видео взято из открытых источников Rutube. Если вы правообладатель, обратитесь к первоисточнику.