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

Резултати

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

Пребарај: #hairstyle

当前筛选 #hairstyle清除筛选
In Voga | Fashion & Web 3.0

@invogafashion · Post #3259 · 20.10.2022 г., 11:02

We return the heading of simple hairstyles on Thursdays😉 And next, we have a high tail and a couple of braids. If the density of the hair allows, then more than two is possible. #hairstyle

Hashtags

In Voga | Fashion & Web 3.0

@invogafashion · Post #2779 · 02.06.2022 г., 12:37

Today I will tell you one more elementary way to style your hair (and yes, it works even if it is not too clean😉 and even if there is not a lot of time) - a low tail/pigtail. There is only one rule - we "hook" the hair as low as possible at the neck, and then - whoever is in what much: - pigtail - leave fluffy and straight, and cover the elastic with a strand of hair - rewind with laces -leave fluffy and add some waves - artificial chaos - add bows and ribbons Inspiration attached👆🏼 #hairstyle

Hashtags

In Voga | Fashion & Web 3.0

@invogafashion · Post #2745 · 28.05.2022 г., 12:11

Hairpins everywhere, hairpins in large quantities, hairpins of various types and types, hairpins in any way - this summer, we are experimenting with hairpins, and we are not afraid to overdo it 😉 A few ideas above👆🏼😉 #hairstyle

Hashtags

In Voga | Fashion & Web 3.0

@invogafashion · Post #2673 · 19.05.2022 г., 13:04

If you suddenly decide to impress everyone with your hair, I suggest taking a incredible work by Mitsuki Jurk as a reference. Hollywood wave with pigtails, asymmetric tails, and braids, geometric parting, a mix of different types of braids, braids + natural flowers🌸🌼🌺🌹🌷 When the head and hair are like a picture 🖼, and the hairdresser is like an artist 👩‍🎨 #hairstyle

Hashtags

In Voga | Fashion & Web 3.0

@invogafashion · Post #849 · 16.08.2021 г., 12:02

One of my good friends cut her hair yesterday, and when I saw her, I thought - to the wolf regiment of thousands of TikTok and Instagram bloggers 🐺 has been added another one. And today, a little about this trend. Wolfcut🧑🏻‍🦰 is the most fashionable haircut for summer 2021 that came to us from Korea. Strictly speaking, this is a mixture of 2 haircuts: mullet and shaggy. With wolf cut, the hair is cut in layers from the crown, and bangs are made (these are shaggy features), but at the back of the head, the hair is left long (borrowed from mallet) - it turns out like wool from wolves, which is slightly longer at the withers. Suitable - thin, but thick enough hair, on too thin hair it is necessary to achieve volume is difficult, and as a result, a completely different story turns out. The strands are stacked from the face. The general appearance of the hairstyle is always disheveled and a little messy. #hairstyle

Hashtags

In Voga | Fashion & Web 3.0

@invogafashion · Post #741 · 27.07.2021 г., 13:06

And here are some more examples on the topic of the previous hairstyle for the summer: - pigtails can be slightly perceptible and have very weak weaving, -can be located not only nearby the face but also a little further along with the top layer of the hairstyle, -and you can braid them, as in the first photo, but the truth is then such a hairstyle cannot be called fast and easy😂 Happy experiments! 😉 #hairstyle

Hashtags

In Voga | Fashion & Web 3.0

@invogafashion · Post #740 · 27.07.2021 г., 11:33

Leonie Hanne reminds us that summer☀️ is the perfect time for fine braids nearby our beautiful eyes: ✔️ it is comfortable and hair does not get into the eyes👍🏼 ✔️ conceptually and summerly ✔️ relevant in summer 2021👌🏼 #hairstyle

Hashtags

In Voga | Fashion & Web 3.0

@invogafashion · Post #1704 · 04.01.2022 г., 12:32

It seems absolutely all influencers are obsessed with headbands😍 The undisputed leaders among brands are Prada, Fendi, Simone Rocha, but the rest are quickly catching up. Unambiguously like from me👍🏼 Today there is a new street style. Let's inspire ❤️ #inspirationINVOGA #hairstyle

ПретходнаСтраница 1 од 3Следна