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

Резултати

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

Пребарај: #manchesterunited

当前筛选 #manchesterunited清除筛选
Reuters: World

@reutersworldchannel · Post #149147 · 09.10.2021 г., 01:26

Marcus Rashford receives honorary doctorate Manchester United forward Marcus Rashford has become the youngest recipient of an honorary doctorate from The University of Manchester for his campaign against child poverty. #MarcusRashford#ManchesterUnited#honorarydoctorate#News#Reuters Subscribe: http://smarturl.it/reuterssubscribe Reuters brings you the latest business, finance and breaking news video from around the globe. Our reputation for accuracy and impartiality is unparalleled. Get the latest news on: http://reuters.com/ Follow Reuters on Facebook: https://www.facebook.com/Reuters Follow Reuters on Twitter: https://twitter.com/Reuters Follow Reuters on Instagram: https://www.instagram.com/reuters/?hl=en ➖@reutersworldchannel➖

EdgeMarket.AI 📣

@edgemarketai · Post #8113 · 19.04.2026 г., 07:48

Will Manchester United qualify for the Champions League this season? 🔴 Big games. Tight margins. Pressure moments. Make your prediction now on EdgeMarket 👇 https://edgemarket.ai/bnb/football/will-manchester-united-qualify-for-the-champions-league-this-season/statistics/69e0c10fdcd75d8e4622fcfb #ManchesterUnited#ChampionsLeague#EdgeMarket#Predictions#Football

EdgeMarket.AI 📣

@edgemarketai · Post #8189 · 15.05.2026 г., 17:24

⚽️ BIG GAME. BIG POINTS. BIG PREDICTIONS. Manchester United 🆚 Nottingham Forest Old Trafford is set for another massive Premier League showdown and the EdgeMarket community is already making moves. 👀 Who takes the win? 🔥 United at home 🌲 Forest upset 🤝 Draw battle Join the live prediction market now: https://edgemarket.ai/bnb/football/who-will-win/statistics/6a02fdd2e789807ba8aa11b5 Predict. Compete. Earn. #EdgeMarket#PremierLeague#ManchesterUnited#NottinghamForest#FootballPredictions#SportsAI#BNBChain

AI match predictions

@ai_match_prediction · Post #11877 · 03.05.2026 г., 05:05

England Premier League🏴󠁧󠁢󠁥󠁮󠁧󠁿 2026-05-03 13:00 UTC Bournemouth vs. Crystal Palace Predicted outcome: Bournemouth✅ Predicted score: 2:1 Actual: Bournemouth 3:0 #Bournemouth#CrystalPalace 2026-05-03 14:30 UTC Manchester United vs. Liverpool Predicted outcome: Manchester United✅ Predicted score: 2:1 Actual: Manchester United 3:2 #ManchesterUnited#Liverpool 2026-05-03 18:00 UTC Aston Villa vs. Tottenham Predicted outcome: Aston Villa❌ Predicted score: 2:1 Actual: Tottenham 1:2 #AstonVilla#Tottenham #Football#PremierLeague

😀 😀 😀 😀 😀 😀 😀 🔥 英超巅峰对决 来袭! 🔥 【曼彻斯特联 vs 托特纳姆热刺 】 📅 比赛日期:2025年5月21日 🕒 北京时间:凌晨 3:00 开球 🏟️ 比赛场地:老特拉福德球场 午夜激情开战,红魔主场迎战来势汹汹的热刺! 是霍伊伦德一锤定音?还是孙兴慜深夜狙击? 夜猫子们准备好了没?这场英超大战,不看你会后悔! 📣 熬夜也要看的比赛,燃爆深夜! #英超#曼联#热刺#英超赛程#午夜足球#老特拉福德#红魔之夜#孙兴慜#霍伊伦德#ManchesterUnited#TottenhamHotspur 🖤 🖤 🖤 🖤 🖤 🖤 🖤 🖤 🖤 🖤 🖤 🖤 🖤 🌟官网链接: ✅magic88.game 👈 ❤️ ❤️ ❤️ ❤️ ❤️ ❤️ ❤️ ❤️ ❤️ ❤️ 🖤 🖤 🖤 🖤 🖤 🖤 🖤 🖤 🖤 🖤 🖤 🖤 🖤 🌐 Telegram 🌐Discord 🌐Facebook 🌐Twitter X 🌐Instagram 🌐Tiktok

AI match predictions

@ai_match_prediction · Post #11974 · 09.05.2026 г., 05:05

England Premier League🏴󠁧󠁢󠁥󠁮󠁧󠁿 2026-05-09 11:30 UTC Liverpool vs. Chelsea Predicted outcome: Liverpool❌ Predicted score: 3:2 Actual: Draw 1:1 #Liverpool#Chelsea 2026-05-09 14:00 UTC Fulham vs. Bournemouth Predicted outcome: Bournemouth✅ Predicted score: 1:2 Actual: Bournemouth 0:1 #Fulham#Bournemouth 2026-05-09 14:00 UTC Brighton vs. Wolves Predicted outcome: Brighton✅ Predicted score: 2:0 Actual: Brighton 3:0 #Brighton#Wolves 2026-05-09 14:00 UTC Sunderland vs. Manchester United Predicted outcome: Manchester United❌ Predicted score: 1:2 Actual: Draw 0:0 #Sunderland#ManchesterUnited 2026-05-09 16:30 UTC Manchester City vs. Brentford Predicted outcome: Manchester City✅ Predicted score: 2:1 Actual: Manchester City 3:0 #ManchesterCity#Brentford #Football#PremierLeague

AI match predictions

@ai_match_prediction · Post #11558 · 18.04.2026 г., 05:05

England Premier League🏴󠁧󠁢󠁥󠁮󠁧󠁿 2026-04-18 11:30 UTC Brentford vs. Fulham Predicted outcome: Brentford❌ Predicted score: 2:1 Actual: Draw 0:0 #Brentford#Fulham 2026-04-18 14:00 UTC Newcastle vs. Bournemouth Predicted outcome: Draw❌ Predicted score: 2:2 Actual: Bournemouth 1:2 #Newcastle#Bournemouth 2026-04-18 14:00 UTC Leeds vs. Wolves Predicted outcome: Leeds✅ Predicted score: 2:1 Actual: Leeds 3:0 #Leeds#Wolves 2026-04-18 16:30 UTC Tottenham vs. Brighton Predicted outcome: Brighton❌ Predicted score: 1:2 Actual: Draw 2:2 #Tottenham#Brighton 2026-04-18 19:00 UTC Chelsea vs. Manchester United Predicted outcome: Draw❌ Predicted score: 2:2 Actual: Manchester United 0:1 #Chelsea#ManchesterUnited #Football#PremierLeague

Alone Snowflake

@AloneSnowflake · Post #496 · 26.04.2025 г., 21:31

• Football Teams Collection •Real Madrid🇪🇸 •Barcelona🇪🇸 •Man United🏴󠁧󠁢󠁥󠁮󠁧󠁿 •Man City🏴󠁧󠁢󠁥󠁮󠁧󠁿 •Juventus🇮🇹 •PSG🇫🇷 •Chelsea🏴󠁧󠁢󠁥󠁮󠁧󠁿 •Liverpool🏴󠁧󠁢󠁥󠁮󠁧󠁿 •Arsenal🏴󠁧󠁢󠁥󠁮󠁧󠁿 •Bayern Munich🇩🇪 • Apply Theme TGX • Join Channel #Football#RealMadrid#Barcelona#ManUnited#ManchesterUnited#ManCity#ManchesterCity#Juventus#PSG#ParisSaintGerman#Chelsea#Liverpool#Arsenal#BayernMunich#Collection

Alone Snowflake

@AloneSnowflake · Post #303 · 25.02.2024 г., 00:50

• Football Teams Collection •Real Madrid🇪🇸 •Barcelona🇪🇸 •Man United🏴󠁧󠁢󠁥󠁮󠁧󠁿 •Man City🏴󠁧󠁢󠁥󠁮󠁧󠁿 •Juventus🇮🇹 •PSG🇫🇷 •Chelsea🏴󠁧󠁢󠁥󠁮󠁧󠁿 •Liverpool🏴󠁧󠁢󠁥󠁮󠁧󠁿 •Arsenal🏴󠁧󠁢󠁥󠁮󠁧󠁿 •Bayern Munich🇩🇪 • Apply Theme TGX • Join Channel #Football#RealMadrid#Barcelona#ManUnited#ManchesterUnited#ManCity#ManchesterCity#Juventus#PSG#ParisSaintGerman#Chelsea#Liverpool#Arsenal#BayernMunich#Collection

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