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

Резултати

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

Пребарај: #gala

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

@CoinSonar · Post #244088 · 18.04.2026 г., 09:00

#GALA | Volume spike (USDT PAIR) 9 times the average volume 200.07K USDT traded in 15 min └Buying vol: 123.38K USDT 🟢 Boost score: 5/10 24h Vol: 1.96M USDT (Binance) Price: 0.00347 (-2.2% in 24h)

Hashtags

Coin Sonar

@CoinSonar · Post #243676 · 17.04.2026 г., 13:27

#GALA | Volume spike (USDT PAIR) 9 times the average volume 197.81K USDT traded in 15 min └Buying vol: 121.37K USDT 🟢 Boost score: 3/10 24h Vol: 1.96M USDT (Binance) Price: 0.00342 (-2.2% in 24h)

Hashtags

Pro Analysis

@proanalysistrader · Post #28387 · 14.01.2025 г., 16:21

#GALA/USDT analysis : #GALA is currently consolidating above the support zone and the 200 EMA. A price bounce is anticipated, allowing for a continuation of its bullish momentum aimed at testing previous highs. Wait for a breakout above the $0.03736 level for a long entry. TF : 1D Entry : $0.03736 Target : $0.06650 SL : $0.02860

Hashtags

Pro Analysis

@proanalysistrader · Post #28314 · 05.12.2024 г., 07:19

#GALA/USDT analysis : #GALA is in an uptrend, forming higher highs and higher lows. After retracing to the 200 EMA and a support zone, the price bounced back and broke the trendline. This suggests a bullish continuation, with expectations to test previous highs. TF : 15min Entry : $0.05933 Target : $0.06655 SL : $0.05497

Hashtags

Pro Analysis

@proanalysistrader · Post #28223 · 18.11.2024 г., 17:48

#GALA/USDT Analysis- After forming a symmetrical triangle pattern, the price broke out, achieving a 30% gain within three days. Currently, the price has completed a retest and is approaching its previous swing high. If it successfully breaks above this level, it has the potential to rally further by over 45%. T.F.- 1-D ENTRY- 0.0317 SL- 0.02720 TARGET- 0.04640 Note: If the stop-loss is triggered before entry, disregard the trade as the price action may develop differently.

Hashtags

Pro Analysis

@proanalysistrader · Post #27987 · 05.10.2024 г., 14:02

#GALA/USDT analysis : #GALA is in an uptrend, making higher highs (HHs) and higher lows (HLs). The price has recently tested the support zone and is expected to bounce back from there to test the previous swing high. TF : 1D Entry : $0.01984 Target : $0.02441 SL : $0.01824

Hashtags

American Crypto©

@americancryptotrading · Post #27573 · 30.03.2026 г., 09:44

🇺🇸#GALA/USDT is trading near the lowerborder of the fallingwedge on the weekly timeframe💁‍♂️ Looks good to buy✈️ American Crypto©

Hashtags

American Crypto©

@americancryptotrading · Post #27552 · 04.03.2026 г., 10:08

🇺🇸#GALA/USDT is facing the lowerborder of the fallingwedge on the weekly chart🧐 Strong upside potential on a bounce🐃 American Crypto©

Hashtags

American Crypto©

@americancryptotrading · Post #27512 · 23.01.2026 г., 10:12

🇺🇸#GALA/USDT is holding above the lowerboundary of the fallingwedge pattern on the weekly timeframe💁‍♂️ Strong upside potential on a bounce📈 American Crypto©

Hashtags

American Crypto©

@americancryptotrading · Post #27402 · 10.10.2025 г., 08:57

🇺🇸#GALA/USDT is moving inside the descendingtriangle on the weekly chart💁‍♂️ Breakout soon🐃 American Crypto©

Hashtags

American Crypto©

@americancryptotrading · Post #27359 · 29.08.2025 г., 09:33

🇺🇸#GALA/USDT is consolidating within the descendingtriangle pattern on the daily timeframe👀 Looks good for the midterm📈 American Crypto©

Hashtags

American Crypto©

@americancryptotrading · Post #27302 · 05.07.2025 г., 08:18

🇺🇸#GALA/USDT is facing the supportzone on the weekly timeframe💁‍♂️ Expecting a bounce soon✈️ American Crypto©

Hashtags

123•••56
ПретходнаСтраница 1 од 6Следна