TGTGInsighttelegram intelligenceLIVE / telegram public index
← Python Заметки

TGINSIGHT SIMILAR POSTS

Најди сличен содржај

Изворен канал @pythonotes · Post #164 · 14 окт.

🙄Разминка для ума! Треугольник Серпинского, интересная фигура которую построить достаточно просто. Алгоритм такой: 1. создаём любые 3 точки на плоскости 2. из этих точек случайно выбираем любую, как начальную 3. случайно выбираем любую точку из этих же трёх точек как цель 4. перемещаемся в сторону цели на половину расстояния 5. повторяем бесконечно с пункта 3 Если сделать достаточно много итераций то вырисовывается интересная фигура. Треугольник, в который вписаны более мелкие треугольники. Это самый настоящий фрактал! Я собрал пример построения такой фигуры на базе Qt. 🌎 Код можно посмотреть здесь. С помощью paintEvent я рисую точки по озвученному алгоритму. Каждые 10 секунд либо по клику на виджете строится следующий треугольник. Особенности примера: 🔸 Атрибут Qt.WA_OpaquePaintEvent позволяет сохранить то, что было нарисовано в прошлой итерации. Таким образом мы видим постепенное наполнение точек а не мелькающую одну точку. 🔸QTimer позволяет создавать отложенные вызовы один раз или с повторением через интервал. 🔸QColor.fromHsv() позволяет создать рандомный но предсказуемый цвет с помощью HSV схемы. Не слишком светлый и не слишком тёмный но всегда с разный. Рандомизации подвергается только смещение по цветовому кругу (Hue), яркость (Value) и насыщенность (Saturation) можно контролировать отдельно в своих пределах или оставить статичными. Обычный рандом цвета по RGB не даёт такой предсказуемый результат. 🔸 Каждый новый цикл с новым треугольником предварительно затемняет предыдущие через этот вызов painter.fillRect(rec, QColor(0, 0, 0, 100)) То есть полупрозрачный цвет. Таким образом, чем старше треугольник, тем он темней. Если сделать виджет фулскрин, то у нас получится некий ScreenSaver))) 🔸 Да, я знаю, что рисование в Qt не самый лучший способ сделать этот пример) Скорее всего самый НЕподходящий. Попробуйте сделать тоже самое но другими средствами. #qt#source#tricks

Резултати

Пронајдени 288 слични објави

Пребарај: #architecture

当前筛选 #architecture清除筛选
ART FLASH

@AFmagazine · Post #28730 · 03.01.2026 г., 13:17

💫Библиотека Chanel в Шанхае: 50 000 вариантов внеклассного чтения по искусству #architecture В ноябре прошлого года Дом моды Chanel открыл первую публичную библиотеку современного искусства в Шанхае. Пространство расположено на третьем этаже музея Power Station of Art. Проект является частью долгосрочного партнерства музея, бренда и программы Next Cultural Producer, которая занимается поддержкой современных китайских ремесел и искусства. Помимо книг и аудиоматериалов, в библиотеке будут размещать работы китайских авторов, дизайн-проекты и инсталляции. Открытие библиотеки подкрепило тенденцию масштабных партнерств моды и искусства — все чаще бренды развивают проекты, направленные на поддержку арт-индустрии. 📎Если вам интересен не только зарубежный, но и российский арт-рынок, то узнать о восприятии и динамике развития мира современного искусства в России в 2025 году можно по ссылке в нашем исследовании ArtLuch. ART FLASH

Midjourney Prompts Daily

@neirodrive · Post #8572 · 21.04.2025 г., 09:05

A gigantic megastructure space station in the shape of an electric bridge, hovering above the Martian surface, photographed from ground level. Published in National Geographic magazine, 2057. 3D render, 8mm lens, Kodak film stock --ar 105:128 --v 7 / bridge turn by atakan5698 #architecture 📣Midjourney prompts

Midjourney Prompts Daily

@neirodrive · Post #8079 · 12.12.2024 г., 08:57

A highly realistic image of a storefront in a Texas landscape, featuring a wide-angle view from the street. The store has a large glass display window showcasing items like frying pans, pillows, kettles, and mugs. Above the entrance, there is a bold sign that reads ‘Household Gunshop.’ The setting is sunny and dusty, with a typical Texan small-town atmosphere. The focus is on the realism of the scene, emphasizing the reflections and details in the glass and the store’s unique character --ar 16:9 --v 6.1 by besspalovalina #architecture 📣 Midjourney prompts

Midjourney Prompts Daily

@neirodrive · Post #8065 · 11.12.2024 г., 08:43

the golden gate bridge lit up at night with christmas lights. there is a person at the bottom of the frame, close to the camera that is connecting an extension cord in front of them to turn on the lights --v 6.1 --ar 4:5 by jlange51 #architecture 📣 Midjourney prompts

Midjourney Prompts Daily

@neirodrive · Post #7534 · 17.09.2024 г., 05:58

A minimalist building facade made of beige brick with large wooden windows and a brown door, featuring intricate geometric patterns on the wall, straight lines, and modern architecture. This image is an example of architectural photography, as seen on Archdaily. --ar 85:128 --q 2 --v 6.1 by _solncev #architecture 🔱 Prompt collection

Midjourney Prompts Daily

@neirodrive · Post #7314 · 26.08.2024 г., 05:13

front view of an adobe beehive shaped building made from salt crystals with round windows, in the desert at dusk, illuminated by lights inside --v 6.1 by hadjaa__ #architecture 🔱 Prompt collection

Midjourney Prompts Daily

@neirodrive · Post #6960 · 22.07.2024 г., 05:33

🔥Собрал для вас целую корзинку свежих промптов🔥 the broken circular baroque building's cut-offs floating in the air --v 6.0 by negseungeimjeu06 #architecture 🐝 Prompt collection

Midjourney Prompts Daily

@neirodrive · Post #6797 · 27.06.2024 г., 05:00

A cinematic photograph capturing fragments of French classical architecture suspended in mid-air, bathed in the glow of orange laser beams. The dense mist envelops the scene, adding a layer of mystery to the timeless elegance of the floating ruins. Created Using: high dynamic range imaging, photorealistic textures of marble and ornate carvings, dynamic floating debris, atmospheric fog effects, futuristic lighting, enhanced contrast, dramatic mood, surreal juxtaposition of history and modernity --v 6 --ar 4:5 by doojiang #architecture 🐝 Prompt collection

Midjourney Prompts Daily

@neirodrive · Post #6752 · 24.06.2024 г., 12:39

a shell shaped biophilic cabin with camouflaged roof, built seamlessly into the dune landscape of portugal, in the style of naturalistic compositions, sustainable architecture, rectangular design, covered in vegetation, blends in with the surrounding nature, green roof, minimalist sets, fujifilm pro --ar 4:5 --style raw --v 6.0 by mesutyucel #architecture 🐝 Prompt collection

Midjourney Prompts Daily

@neirodrive · Post #6498 · 05.06.2024 г., 05:09

A solitary person standing in front of the illuminated Colosseum in Rome, with a giant, glowing moon in the sky, its light casting shadows through the ancient arches, highlighting the grandeur of the historical monument. --ar 51:64 --v 6.0 --style raw - An individual alone at the base of the towering Mount Fuji, illuminated by a massive, glowing moon, creating an impressive contrast between the serene figure and the majestic, snow-capped peak of Japan. --ar 51:64 --v 6.0 --style raw - A solitary person standing in front of the illuminated Eiffel Tower at night, with a giant, detailed moon hanging low in the sky, its light reflecting off the Seine River, highlighting the majesty of Paris --ar 51:64 --v 6.0 --style raw by jose20239 #architecture 🍄 Prompt collection

123•••10•••20•••2324
ПретходнаСтраница 1 од 24Следна