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

Резултати

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

Пребарај: #layer

当前筛选 #layer清除筛选
Coin Sonar

@CoinSonar · Post #243385 · 17.04.2026 г., 00:54

#LAYER | Volume spike (USDT PAIR) 31 times the average volume 129.36K USDT traded in 15 min └Buying vol: 81.42K USDT 🟢 Boost score: 4/10 24h Vol: 394.58K USDT (Binance) Price: 0.0902 (-1.2% in 24h)

Hashtags

Pump Leaks

@pumpleaks · Post #678 · 06.01.2024 г., 00:36

Pump Result: One of the best pumps we’ve had. The volume crossed an unprecedented $3.2 million in the first 15 minutes, catapulting #LAYER to our 10x target (957%) and making all of our members huge profits, that’s exactly why we’re the best in the world. Our coin held as the top gainers for hours after our signal, demonstrating the real power of our whales and market makers. Even though we saw a huge volume of external selling (very likely coming from the coin team), we truly delivered on the expected exceptional first pump of the year, and things are just going to get better from here. We’re still receiving an overwhelming amount of gratitude messages from members that scored big, and asking for our next pump. No stress, enjoy the profits, we’ll announce it soon. In the meantime, we’re focusing our efforts on never used before marketing strategies to bring in over 1 million new members for our next Kucoin Mega Pump, which will absolutely dwarf anything we’ve seen until now. Stay tuned for our next pump announcement.

Hashtags

Wall Street Gems

@wallstreetgems · Post #583 · 06.01.2024 г., 00:37

Pump Result: One of the best pumps we’ve had. The volume crossed an unprecedented $3.2 million in the first 15 minutes, catapulting #LAYER to our 10x target (957%) and making all of our members huge profits, that’s exactly why we’re the best in the world. Our coin held as the top gainers for hours after our signal, demonstrating the real power of our whales and market makers. Even though we saw a huge volume of external selling (very likely coming from the coin team), we truly delivered on the expected exceptional first pump of the year, and things are just going to get better from here. We’re still receiving an overwhelming amount of gratitude messages from members that scored big, and asking for our next pump. No stress, enjoy the profits, we’ll announce it soon. In the meantime, we’re focusing our efforts on never used before marketing strategies to bring in over 1 million new members for our next Kucoin Mega Pump, which will absolutely dwarf anything we’ve seen until now. Stay tuned for our next pump announcement.

Hashtags

Pepe Pumps Signals

@pepe_pumps_signals · Post #293 · 06.01.2024 г., 00:36

Pump Result: One of the best pumps we’ve had. The volume crossed an unprecedented $3.2 million in the first 15 minutes, catapulting #LAYER to our 10x target (957%) and making all of our members huge profits, that’s exactly why we’re the best in the world. Our coin held as the top gainers for hours after our signal, demonstrating the real power of our whales and market makers. We truly delivered on the expected exceptional first pump of the year, and things are just going to get better from here. We’re still receiving an overwhelming amount of gratitude messages from members that scored big, and asking for our next pump. No stress, enjoy the profits, we’ll announce it soon. In the meantime, we’re focusing our efforts on never used before marketing strategies to bring in over 1 million new members for our next Kucoin Mega Pump, which will absolutely dwarf anything we’ve seen until now. Stay tuned for our next pump announcement.

Hashtags

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