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

Резултати

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

Пребарај: #sei

当前筛选 #sei清除筛选
American Crypto©

@americancryptotrading · Post #27568 · 25.03.2026 г., 11:03

🇺🇸#SEI/USDT has found support at the lowerborder of the descendingchannel on the 3D timeframe👀 Looks good for the midterm✈️ American Crypto©

Hashtags

American Crypto©

@americancryptotrading · Post #27532 · 12.02.2026 г., 09:45

🇺🇸#SEI/USDT is currently consolidating inside the descendingchannel formation on the 3D timeframe👨‍💻 Accumulate before the rocket takes off📈 American Crypto©

Hashtags

American Crypto©

@americancryptotrading · Post #27495 · 07.01.2026 г., 11:51

🇺🇸#SEI/USDT is holding above the lowerboundary of the descendingchannel formation on the 3D timeframe💁‍♂️ Strong upside potential on a bounce🚀 American Crypto©

Hashtags

American Crypto©

@americancryptotrading · Post #27414 · 22.10.2025 г., 08:58

🇺🇸#SEI/USDT is consolidating inside the descendingchannel pattern on the 3D chart🧐 A breakout will bring a huge rally🐃 American Crypto©

Hashtags

American Crypto©

@americancryptotrading · Post #27360 · 30.08.2025 г., 08:46

🇺🇸#SEI/USDT has retested the s/rzone on the 2D timeframe👀 Time to bounce and rally🚀 American Crypto©

Hashtags

American Crypto©

@americancryptotrading · Post #27163 · 22.02.2025 г., 12:16

🇺🇸#SEI/USDT is facing the upperborder of the fallingwedge formation on the daily chart🔍 Bullish case if we break above the one🚀 American Crypto©

Hashtags

Bitcoin Bullets®

@bitcoinbuliets · Post #14217 · 10.05.2026 г., 20:05

#SEI Market Analysis SEI/USDT showing strong bullish momentum with price near the upper Bollinger Band and MACD confirming upward trend. RSI above 76 signals overbought conditions but doesn't negate short-term strength. Holding above 0.0591 supports continuation toward resistance at 0.0620. Bear case triggers below 0.0585, risking a deeper pullback to key supports near 0.0579. Watch 0.0591 as the pivot for bulls and bears. --- ➖➖➖➖➖➖➖ Bitcoin Bullets® Trading

Hashtags

Bitcoin Bullets®

@bitcoinbuliets · Post #14146 · 09.05.2026 г., 20:05

#SEI Market Analysis SEI/USDT showing strong bullish momentum with MACD confirming upside and RSI stretched near 74 signaling overbought conditions. Price hugging the upper Bollinger Band suggests continuation but warns of a short-term pullback. Bull case: Hold above 0.0586 to target 0.0620 and beyond. Bear case: Break below 0.0575 risks deeper correction toward 0.0550. Key level to watch: 0.0586 support. --- ➖➖➖➖➖➖➖ Bitcoin Bullets® Trading

Hashtags

Bitcoin Bullets®

@bitcoinbuliets · Post #13522 · 22.04.2026 г., 20:03

#SEI Market Analysis SEI/USDT holding a strong bullish structure with MACD confirming momentum and RSI pushing into overbought territory near the upper Bollinger Band. Price is well above key supports, showing solid demand on dips. Bull case: Hold above 0.055, targeting a test of 0.059 resistance. Bear case: Lose 0.054 support, risk deeper pullback toward 0.05385. Watch 0.055 closely for trade direction. --- ➖➖➖➖➖➖➖ Bitcoin Bullets® Trading

Hashtags

Bitcoin Bullets®

@bitcoinbuliets · Post #13511 · 22.04.2026 г., 04:03

#SEI Market Analysis SEI/USDT is in a weak bearish trend but shows short-term bullish signals with MACD turning positive and RSI near 61. Price is testing resistance near 0.056 and trading close to the upper Bollinger Band, indicating potential exhaustion. Bull case: hold above 0.056, targeting 0.059 for a relief bounce. Bear case: lose 0.055 and risk a deeper pullback toward the 0.053 support zone. Key level to watch: 0.056. --- ➖➖➖➖➖➖➖ Bitcoin Bullets® Trading

Hashtags

Bitcoin Bullets®

@bitcoinbuliets · Post #13219 · 04.04.2026 г., 04:09

#SEI Market Analysis SEI/USDT shows a weak bearish structure with price hovering near resistance at 0.05496 and RSI steady around 54. MACD is bullish and price trades in the upper half of the Bollinger Bands, signaling potential short-term strength. Bull case: hold above 0.05375 to target 0.05558 resistance. Bear case: lose 0.0509 support and risk a deeper pullback toward 0.0486. Key level to watch: 0.05375. --- ➖➖➖➖➖➖➖ Bitcoin Bullets® Trading

Hashtags

Bitcoin Bullets®

@bitcoinbuliets · Post #13215 · 03.04.2026 г., 20:09

#SEI Market Analysis SEI/USDT shows a weak bearish structure but MACD is turning bullish, signaling potential short-term strength. Price is near the upper Bollinger Band with RSI around 59, indicating room to run but also caution for a squeeze. Bull case: hold above 0.05496 for a push to 0.05595 resistance. Bear case: lose 0.0509 support and risk a deeper drop to 0.0486. Key level to watch: 0.05496. --- ➖➖➖➖➖➖➖ Bitcoin Bullets® Trading

Hashtags

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