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

Резултати

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

Пребарај: #cryptogrowth

当前筛选 #cryptogrowth清除筛选
TON Crypto News

@toncoin_rap · Post #142 · 13.09.2024 г., 06:29

🎧⤴ TON Blockchain Surges to the Top: Is This the Next Crypto Revolution? The TON Blockchain has taken the crypto world by storm, becoming a leader in terms of annual transaction growth. As one of the fastest-growing blockchains, TON boasts an impressive ecosystem, driven largely by its close association with Telegram and a growing number of users across CIS and Asia. With its remarkable performance, the network outpaces major players like Bitcoin, offering unprecedented potential for Web3 adoption. The future of decentralized applications (DApps) and the crypto economy is being reshaped—TON’s rise to the top is just the beginning! Chorus: We're TON, blockchain risin', makin' moves you can't deny, Fastest on the block, watch it grow and touch the sky. Transactions flowin' like a stream, unstoppable and wide, Web3’s future’s here, we’re the ones to take the ride. Verse 1: Came from Telegram, we ain't here to play, Transactions through the roof, growin’ every day. From the CIS to Asia, crypto on display, The TON revolution’s here, no time for delay. EVM in sight, layer-2 it’s tight, Developers ridin’ with us, keepin’ it light. Bitcoin we outpace, future lookin' bright, Decentralized dreams, man, we takin' flight. Chorus: We're TON, blockchain risin', makin' moves you can't deny, Fastest on the block, watch it grow and touch the sky. Transactions flowin' like a stream, unstoppable and wide, Web3’s future’s here, we’re the ones to take the ride. Verse 2: Open League in the scene, crypto on the rise, With a cabin full of plans, takin' over the skies. Affordable tech, unlockin' minds worldwide, From DeFi to GameFi, come and join the tide. Bridges to Bitcoin, yeah, we breakin’ the mold, Ether’s on notice, TON’s gettin' bold. No airdrop games, just stories untold, It’s the mass adoption wave, come get involved. Chorus: We're TON, blockchain risin', makin' moves you can't deny, Fastest on the block, watch it grow and touch the sky. Transactions flowin' like a stream, unstoppable and wide, Web3’s future’s here, we’re the ones to take the ride. Verse 3: From the shadows we crept, now we're front page, Pushin’ out the limits, we the crypto age. Layer 1 shakin’, disruptin' the stage, Decentralized freedom, come release the cage. Partners in place, with Tether on board, Fintech’s future, where Toncoin’s adored. Validator nodes climbin', pushin' the horde, TON leads the charge, watch us soar like a sword. Chorus: We're TON, blockchain risin', makin' moves you can't deny, Fastest on the block, watch it grow and touch the sky. Transactions flowin' like a stream, unstoppable and wide, Web3’s future’s here, we’re the ones to take the ride. Bridge: Exponential growth, we keep pushin’ the limit, Cryptocurrency dreams, TON’s right in it. Block by block, code never timid, World’s watchin' now, TON’s the one to win it. #TONBlockchain #CryptoGrowth #TONCryptoNewsRapStyle 🎧@toncoin_rap

Venture Village Wall 🦄

@venturevillagewall · Post #3984 · 25.01.2025 г., 19:00

Crypto Trader Gains $1.2 Million Profit Famous trader *Cosmonaut* achieves $1.2 million profit by following whale wallets. Bought Trump token for $5-8 before surge, similar success with SHIBA, PEPE, and FLOKI, each rising over 1000% in six months. Weekly trade signals shared in his Telegram channel predict coins with x5-x10 potential for 2025. Join him here. Pantera Capital's Dan Morehead shares confidence in Bitcoin's resilience, citing ownership by 50 million Americans and institutions like BlackRock and Fidelity back it. #Crypto#Bitcoin#Trading#Profit#Investment#Whales#Tokens#Cosmonaut#SHIBA#PEPE#FLOKI#PanteraCapital#DanMorehead#Solana#Fidelity#BlackRock #2025 #MarketTrends#CryptoGrowth#Telegram

Venture Village Wall 🦄

@venturevillagewall · Post #4190 · 19.02.2025 г., 13:00

OKX Legalizes Operations in Europe OKX has obtained MiCA licensing and passported its services across the European Economic Area (EEA). Over 400 million users in 28 countries can now access fully regulated crypto services via its Malta base. Licensed entities can expand services within the EU under a unified regulatory framework. The platform offers access to over 240 crypto assets and more than 300 trading pairs, including 60+ with Euro. More details: OKX Announcement #OKX#Crypto#EU#MiCA#CryptoRegulation#Malta#Blockchain#Trading#DigitalAssets#CryptoServices#Cryptocurrency#ECC#Fintech#RegulatedCrypto#CryptoGrowth#Investing#Finance#TradingPairs#Economie#CryptoMarket#MarketTrends