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 слични објави

Пребарај: #referral

当前筛选 #referral清除筛选
English is ꏂꍏꌚꌩ

@englishiseasyet · Post #1327 · 23.06.2024 г., 08:51

ቶን በ #Referral እየተሰጠ ነው 1 ቶን 1000 ብር ነው ከታች ባለው ሊንክ start በሉና እየገባቹ ውሰዱ እዳያመልጣቹ ለትንሽ ቀን ነው ሚሰጠው..!! 👇👇👇👇👇👇👇 https://t.me/wontonairdrop_bot?start=5396172750

Hashtags

MoonPlay

@moonplay_official · Post #44 · 28.06.2024 г., 15:34

Referral System & CrewUpdate👥 We’re thrilled to announce a significant change to the gameplay in To The Moon! In a nutshell, it’s getting much simpler to launch an expedition, yet the impact of each friend invited is now more powerful than ever. 1️⃣One Friend for a Launch: From now on, having only one crew member hired is enough to fly to the moon. That’s right—one friend per expedition is all you need to land on the moon and level up. Simplified Crew requirement —> faster expeditions —> more fun! Feel free to hire all the rest of the crew by inviting up to 7 friends; but for an expedition, one is enough. 2️⃣Invite More, Earn More: For every 7 new referrals (up to 35), your 💸bonus increases for the next 7 referrals. E.g. you invited 7 friends and got 500 space bucks for each; then you invited more and got a total of 12 referrals, the bonus for these 5 referralsis 2500 space bucks!And so no. ❗️The progressive bonus system applies to referrals invited after this update. Remember, you still get a percentage of your friends' mined coins as long as they play, but this update is all about supercharging that initial bonus. 3️⃣TON Purchases Removed In compliance with regulatory policies from the App Store and Google Play, purchasing friends for TON is no longer available. As a token of appreciation for helping us expand our cosmic community, all players who have purchased bots for TON have received bonus Space Bucks! 🤩 Thank you for being a part of this journey. Together, we’re building a community that’s out of this world. To The Moon! | Website | Telegram Chat | X | Discord | Medium #ToTheMoon#MoonPlay#ecosystem#blockchain#gamefi#web3#milestone#invitefriends#wenlisting#airdropsoon#communityfirst#taptap#clicker#referral

Venture Village Wall 🦄

@venturevillagewall · Post #3745 · 29.12.2024 г., 16:00

Blum's Controversial Update Sparks Backlash Blum's recent announcement regarding its new point system has raised eyebrows among users, seen as devaluing months of effort. Critics argue that this move reflects a greed-driven strategy rather than rewarding loyal users. The absence of referral incentives further fuels dissatisfaction, with many questioning Blum's leadership approach. Some believe that this misstep may jeopardize future user trust if the token drop lacks transparency and fairness. For more details, read the full analysis here: TonUP_SRP and check the discussed token drop implications: Bybit. #Blum#Crypto#VC#TokenDrop#Loyalty#Referral#Sustainability#Users#Growth#Feedback#Strategy#Leadership#Earnings#Finance#Investing#WhaleAlert#BTC