🙄Разминка для ума!
Треугольник Серпинского, интересная фигура которую построить достаточно просто.
Алгоритм такой:
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
🚨Just a reminder: On November 17, 2025, in RedNile Episode 62, I predicted the U.S. regime change play in Venezuela.
The U.S. operation we're seeing now—including the shocking January 3rd move against Maduro—was foreshadowed in this analysis I published a month ago.
🎞This video breaks down the entire blueprint:
🔹 The historical imperial script from Monroe to Trump
🔹 How the "War on Drugs" is used as cover
🔹 The sanctions, coups, and media narratives targeting Venezuela
🔹 The real geopolitical goal: stopping Latin America's shift toward multipolarity
Everything you need to understand the why, who, and what behind today's events is explained here.
📺 Watch the full analysis from November 2025: https://youtu.be/Lt_gFn8Dxj8?si=VTMvyRfVfR77OYp_
---
💠 Follow: Telegram | Twitter | YouTube | TikTok: @rednile12
#Venezuela#RegimeChange#Prediction#Geopolitics#USIntervention
Will Manchester City win the Premier League 2025/26 title
This is now live on EdgeMarket
Not hype not opinions
Structured prediction driven by signal and validation
Enter the market
Submit your position
Track the outcome
Deadline May 24
Join here ⬇️
https://edgemarket.ai/bnb/football/will-manchester-city-win-the-premier-league-202526-title/statistics/69df3ecf93819e68721b57cd
#EdgeMarket#PremierLeague#Prediction#FootballMarkets
📊 MARKET QUESTION LIVE
Will the Toronto Maple Leafs win their first April 2026 playoff game?
This isn’t about takes it’s about probability.
On EdgeMarket:
→ AI models track performance signals
→ Market sentiment is verified
→ Data updates in real time
Watch how the probability moves as we approach playoffs.
This is live predictive intelligence.
#EdgeMarket#NHL#SportsData#AI#Prediction
http://www.aparat.com/v/4nbc9
This talk gives a quick overview of Python's capabilities as a #data_processing and #machine_learning tool through practical examples: gathering data from the web or a local file, validating/modifying it and finally analyzing it to build models for #classification and #prediction#tasks.
Bitcoin Predicted to Reach $200K Soon
Standard Chartered's Geoff Kendrick forecasts Bitcoin will hit $200K this year and could reach $500K before Trump exits the presidency. Predictions reflect growing confidence in BTC's potential growth trajectory.
#Bitcoin#Crypto#Finance#Investment#Prediction#Market#Trump#StandardChartered#DigitalAssets#GeoffKendrick
New high-volatility geopolitical question live ⚠️
Will a senior political leader become the target of an assassination attempt?
Markets react before media confirms.
AI tracks signal shifts in real time.
Watch sentiment move.
#Geopolitics#Prediction#MiddleEast#AIModels#Forecasting#RiskSignals#EdgeMarket
AI Predictions: From Vacuums to Real Impact
AI-powered prediction platforms are gaining traction, with a focus on forecasting reactions based on content and audience. Initial predictions using tools like ChatGPT yield 17% accuracy, but considering audience interactions can boost accuracy to 83%. This innovative approach helped a startup refine its pitch to enter Y Combinator. Discover more insights on enhancing prediction accuracy in various fields here.
#AI#Startup#Prediction#YCombinator#Marketing#Innovation#Tech#Growth#Entrepreneurship#Forecasting#AudienceAnalysis#DataScience#MachineLearning#Success#Business#Trends#Platforms#Metrics#Investment#VC
Latest Funding Rounds for Startups
Recent funding rounds:
- Flanks raised $14.70M on Feb 26, 2025. Focus on wealth management and core business growth. Read more
- Infimind secured $13.77M on Feb 25, 2025. Enhancing e-commerce with AIGC technology. Read more
- Anagram raised $10M on Feb 26, 2025. Human-driven security platform. Read more
- Ignota Labs received $6.90M on Feb 26, 2025. Focused on toxicity prediction. Read more
- HouseWhisper acquired $6.70M on Feb 25, 2025. AI for real estate professionals. Read more
- Afynia Laboratories raised $5M on Feb 25, 2025. Read more
- Dispersa received $4.07M on Feb 25, 2025. Read more
- Swirepay raised $3.40M on Feb 25, 2025. Customizable B2B SaaS for transactions. Read more
- CQR secured $3M on Feb 26, 2025. Read more
- Vidyut received $2.50M on Feb 26, 2025. Read more
#Fundraising#Flanks#Infimind#Anagram#Ignota#HouseWhisper#Afynia#Dispersa#Swirepay#CQR#Vidyut#AI#Tech#Startups#Finance#Ecommerce#Security#SaaS#B2B#Prediction#VC