🙄Разминка для ума!
Треугольник Серпинского, интересная фигура которую построить достаточно просто.
Алгоритм такой:
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
Audi A8 e-tron launch event for which we did keynote presentations brought us a big challenge suddenly as just a night before we had to change and move contents from one screen to another due to tecnical glitch in screens setup. As you can see there are screens everywhere for immersive experience, all keynote presentations had to be made for all screens to ensure the event is grand as it's Audi . We did this event last year and we did another Audi event last month. It's fun 😊
#Keynote#presentation#design@PowerPointBBT
We worked for Coca-Cola event that happened in May this year. With so much of content changes constantly coming from them, it was tough but we did it. At the end, clients appreciated us so much for allowing last minute changes and making the event a success.
#PowerPoint#Keynote#presentation#ppt
Last year we did presentation for KIA NDC and this year we did it for its parent company Hyundai. One more addition to the brands we have served. Take a look at the presentation that we did in keynote for this 13 screen setup measuring a total of 80 feet. A seamless presentation for an immersive experience.
#PowerPoint#Keynote#presentation#ppt
Hello there, please reach out for any PPT (PowerPoint) related work. Have worked with some top brands like Samsung, Honda, KIA, Lenovo, Adobe, Google and many more.
#PowerPoint#Keynote#presentation#ppt
So, we were working on one of the number one mass-market automotive brands. It originates from Korea and has a worldwide presence.
Unfortunately happened to be a double work for us because suddenly they realised that they didn't brief us on about their brand guidelines. We had to change the whole course and it's right now under management review. Barely slept for 4 hours.
#PowerPoint#Keynote#presentation#ppt
🎤Keynote Speech by Meta & NVIDIA
📍 September 24, 2025 | Main Hall 1, CAEx, Tashkent
⏰ 14:00 – 16:00
Representatives of META and NVIDIA will deliver inspiring keynote speeches and take part in TED Talks, sharing their vision of the future of digital technologies. The sessions will highlight cutting-edge innovations in AI, immersive technologies, and digital transformation, offering new perspectives for Uzbekistan’s ICT ecosystem.
👉 Don’t miss the chance to hear directly from global tech leaders shaping the future of technology.
#ICTWeekUzbekistan2025#META#NVIDIA#AI#Innovation#Keynote#DigitalTransformation