🙄Разминка для ума!
Треугольник Серпинского, интересная фигура которую построить достаточно просто.
Алгоритм такой:
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
🚨🚨[Updated] FTX and Alameda Research further deposited $14.4M worth of 8 tokens $MATIC, $BAND, $PERP, $TRU, $BICO, $KNC, $CVC and $BOND to exchanges.
Top 3 inclues:
- 8.15M $MATIC ($4.96M)
- 2.03M $BAND ($3.15M)
- 3.76M $PERP ($2.28M)
Overall, FTX and Alameda have deposited $47.3M worth of 20 #EVM tokens to exchanges.
Currently, they still hold ~$736M worth of various EVM assets more!
👉 Entities:
- FTX: https://platform.spotonchain.ai/entity/354
- Alameda Research: https://platform.spotonchain.ai/entity/79
👉 More details: https://platform.spotonchain.ai/signal-details/ftx-and-alameda-further-deposited-assets-to-exchanges-2957
🎙Wow, we had an electrifying AMA with @CyberChargeJoe. Big thanks for sharing those exciting updates. 🚀
⚡️Congrats to our Twitter Winners:
@Nguyen2Sakura
@Maso1st
@RiosCrystal
@SSupergem
@Chloe_McLaren
🎉You’ve each won 10 USDT! DM @CyberChargeWeb3 with your #EVM wallet address to claim your prize.
Like👍, Retweet🔵, Comment
Link to the Tweet!
🎤We just wrapped up an amazing and insightful AMA session! Big thanks to @CyberChargeJoe for sharing the latest product updates and exciting future plans for CyberCharge.
⚡️Now, it's time to recognize our Twitter Winners:
@web3k7
@JMikecryp
@hung3301
@Benny_bitcoinn
@CryptoKhangng2
🎉Congrats to the winners! Each of you will receive a reward of 10 USDT. Please send a DM to @CyberChargeWeb3 with your #EVM wallet address to claim your prize. ✍️
Like👍, Retweet🔵, Comment
Link to the Tweet!
The State of TON DeFi Q2 2024
The launch of native USDt provided a significant boost to liquidity and trading volumes across all major DeFi protocols on TON. As a result, the TON/USDt pools on DeDust and STON.fi became the largest multi-exposure pools with a stablecoin across all blockchains tracked by DefiLlama, with TVLs of $301.12M and $286.75 respectively. Additionally, TON’s Daily Active Addresses (DAAs) surpassed those of Ethereum for the first time.
The quarter also saw impactful infrastructure launches, including the TON Applications Chain (TAC), the first solution to bring EVM capabilities to TON, and TonFura, a platform for building dApps on TON that complements the existing TON API.
Keep track of the ~50% APR opportunities in TON/USDt pools on DeDust and STON.fi, and read our new article about the performance of TON’s DeFi sector in Q2 2024.
You may be interested in: How to Achieve EVM Compatibility in Non-EVM Blockchains.
#DeFi#EVM#DEX
🔝Website🔝Kirill from TOP
📰Medium✖️ X
💼Linkedin📖Facebook
🆕We just released TP Wallet's New Version on iOS! 🔺2.1.3🔺
🔵 Support HD Wallets.
🔵 Support the interaction between KeyPal Hardware Wallet and TRON, #BTC, and dogecoin.
🔵Allow setting Nonce for transfers.
🔵 Support checksum for #EVM addresses.
🔵 Support auto-suggestion feature for entering secret recovery phrases.
🔵 Default filter the risky transaction histories.
🔵 Support Thai🇹🇭and Portuguese🇵🇹 languages.
🔵 Optimize the Select Network page.
🔵 Optimize #EIP1559 interaction.
🔵 Optimize fee estimation for Layer 2 like optimismFND, arbitrum, etc.
👉https://tokenpocket.pro
🪙HOT Bridge — the fastest and cheapest bridge to TON!
And that's really true
Transfer $USDT from #Solana, #NEAR, and #EVM networks to #TON with zero bridge fees!
➡Bridge speed — up to 45 seconds
➡Seamless interaction in just a couple of clicks
➡All transfers are decentralized and powered by HOT Protocol
👍Try it now — just simply import your seed-phrase or secret key and enjoy the best bridge in Telegram!
Quoted symbiosis_fi : 💰 Join our ongoing $1,000 giveaway exclusively for #TokenPocket users! 👇
https://galxe.com/TokenPocket/campaign/GCS8ytUEqJ
✨Embark on your #DeFi adventure by bridging $USDT seamlessly from #EVM to #TRON! symbiosis_fi
Don't miss out on this incredible opportunity to elevate your #crypto experience.
【Details】https://twitter.com/TokenPocket_TP/status/1728367858324013316
【Powered By】Crypto Box
#FTX and #Alameda used the past #BitcoinETF rally week to deposit $28.2M worth of assets to CEX at good prices, including:
• 402.6 $WBTC ($18.7M)
• 3,200 $ETH ($8.09M)
• 602K $PENDLE ($1.04M)
• 9.03M $PEOPLE ($350K)
They still have ~$1.2B left in #EVM assets.
👉 For more updates, follow @spotonchain and turn on your 🔔 at:
1. FTX entity: https://platform.spotonchain.ai/en/platform/entity/354
2. Alameda Research entity: https://platform.spotonchain.ai/en/platform/entity/79
💰$1,000 Giveaway To #TokenPocket Users. TokenPocket_TP teams up with symbiosis_fi & Tronify_io to bring you a $1,000 reward extravaganza.
🏆 Prize Pool: $1,000
Complete the simple tasks and get a chance to share the rewards and claim your #GalxeOAT!👇
https://galxe.com/TokenPocket/campaign/GCS8ytUEqJ
1️⃣ Download #TokenPocket:
👉https://www.tokenpocket.pro/
2️⃣Complete $USDT cross-chain transfer from #EVM to #TRON at least $15.
3️⃣RT & Follow TokenPocket_TP symbiosis_fi Tronify_io
Grab your ticket now for the #DeFi adventure!
The greater your trading activity, the higher your chances of securing a portion of the $1,000 giveaway!
【Details】https://twitter.com/TokenPocket_TP/status/1727978282677567995
【Powered By】Crypto Box
🥳We are thrilled to announce that UFLY Labs has completed the investment to Duck_Chain!
Duck_Chain is the first #TON consumer layer connecting TON with #EVM , #BTC , and more! Powered by Arbitrum.
DuckChain will adopt UXLINK Social Growth Layer as its social layer, providing core services for the social modules on the blockchain.
🎁DuckChain's native token will do global #TGE in Jan.2025, and we will do #Airdrops to both community members especially for $UXLINK holders and stakers!
Vitalik Buterin proposes binary state trees and a RISC-V VM to solve Ethereum’s execution bottlenecks.
⚡️ 他指出,目前以太坊执行层面临两大核心瓶颈:
1️⃣ 状态访问与存储效率
2️⃣ 虚拟机架构限制
通过引入 Binary State Trees,有望优化状态证明结构,而 RISC-V 虚拟机 则可能提升执行效率与灵活性。
“A better VM can make Ethereum beautiful and great.”
⚡️这不仅是技术升级讨论,更是 长期可扩展性与模块化路线的关键一步。
若推进顺利,或将影响未来 L2 设计与执行层架构方向。
#Ethereum#ETH#Layer1#Scaling
#Blockchain#EVM#RISC#Crypto
#блокчейн#EVM#Ethereum#база
Что такое EVM-совместимый блокчейн?
EVM (Ethereum Virtual Machine) — это "мозг" Ethereum, который отвечает за выполнение смарт-контрактов. EVM-совместимый блокчейн — это блокчейн, который поддерживает работу этих смарт-контрактов точно так же, как и Ethereum.
👍Преимущества:
• Совместимость: Можно переносить смарт-контракты и dApps с Ethereum без изменений.
• Большое сообщество: Множество разработчиков, инструментов и библиотек, которые можно использовать.
• Низкие комиссии: Некоторые EVM-совместимые блокчейны предлагают более дешевые транзакции, чем сам Ethereum.
📌 Примеры:
#BinanceSmartChain (BSC): Популярный EVM-совместимый блокчейн с низкими комиссиями.
#Polygon: Решение второго уровня для Ethereum с высокой пропускной способностью.
#Avalanche: Предлагает высокую скорость транзакций и EVM-совместимость.
❗️EVM-совместимые блокчейны — это мощный инструмент для разработчиков и пользователей. Они дают возможность работать с уже известными технологиями, но при этом выбирать наиболее подходящие условия.
@MirraChannel😎