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

Резултати

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

Пребарај: #snapchat

当前筛选 #snapchat清除筛选
🦅 [ perspective ix ]

@perspectiveix · Post #1641 · 06.11.2018 г., 10:00

💸SnapAds are the Primary Ad Spend on Snapchat #Snapchat advertising spend by national marketers was projected to have increased by 10% in Q3 and by 8% through the first 9 months of the year, according to recent figures from Standard Media Index, which sources its data directly from the invoices of 5 of the 7 major media holding companies and leading independent agencies. Snapchat’s advertising business has been growing slower than expected. Well, at least according to eMarketer, which recently drastically cut its forecast for the platform’s ad revenues. 🚀@PerspectiveIX via MarketingCharts. 👻 Join us on Snapchat! ❓Do you use Snapchat?

Hashtags

🦅 [ perspective ix ]

@perspectiveix · Post #1521 · 05.09.2018 г., 08:00

​​👻Snap Across the Map According to Snap, on average, 188 million people around the world use #Snapchat on a daily basis, and these daily active Snapchatters use the app at an average of over 20 times per day. As of August 2018, these are the number of users Snapchat can reach in different regions/countries: - 93 million in the 🇺🇸 & 🇨🇦 - 76 million in Europe (17.5m in 🇫🇷, 15.5m in 🇬🇧, 9.2m in 🇩🇪) - 21 million in MENA (13.1m in 🇸🇦, 2.6m in 🇮🇶, 1.8m in 🇦🇪) - 13 million in Latin America - 6.5 million in 🇮🇳 - 6 million in 🇦🇺 🚀@PerspectiveIX via Snap. ❓Do you use Snapchat?

Hashtags

🦅 [ perspective ix ]

@perspectiveix · Post #1506 · 29.08.2018 г., 08:00

​​👻Snapchat's Growth In their Q2 2018 earnings report, Snap, #Snapchat's parent company, reported beating revenue expectations by 5%, but user growth, after slowing considerably for two years, went in the opposite direction. Snap’s Daily Active Users were (DAUs) still up 9% YoY, but for the first time declined sequentially by 2%. 🚀@PerspectiveIX Read more about Snap's growth excuses at Stratechery.

Hashtags

🦅 [ perspective ix ]

@perspectiveix · Post #1444 · 07.08.2018 г., 18:30

​​👻Has Snapchat already stopped growing? Snap reports its Q2 results today after the market close. And the consensus from analysts is that Snap’s audience will grow by just 1 million daily active users, according to FactSet. That’s surprising, considering that #Snapchat added 21 million new users in the same period two years ago. 🚀@PerspectiveIX 📖 via Recode: prs.pctvix.co/2Mqa5mZ

Hashtags

🦅 [ perspective ix ]

@perspectiveix · Post #1291 · 23.05.2018 г., 19:30

👻Want More Followers on Snapchat? Getting discovered on #Snapchat is not the easiest thing, so we thought we share what we’ve learned so far: https://prs.pctvix.co/2IdOu23 🚀@PerspectiveIX

Hashtags

🦅 [ perspective ix ]

@perspectiveix · Post #1210 · 18.04.2018 г., 23:05

​​🤠For Snapchat Fans Out There We're making a few #Snapchat Lenses (aka face filters). Already made these caps: ❤️ Manchester United: https://prs.pctvix.co/2qF9yDY 💚 New York Jets: https://prs.pctvix.co/2HaW5uD 🦄 Unicorn: https://prs.pctvix.co/2F01RgC If you want a cap for the team you support, message @iXContactBot with the NAME, COUNTRY, and SPORT your team plays. We will randomly select 3 of them and make you a cap! You have 24 hours. Good luck 🙂 🚀@PerspectiveIX 👻 Add us on Snapchat: http://prs.pctvix.co/SnapchatIX

Hashtags

🦅 [ perspective ix ]

@perspectiveix · Post #1144 · 11.03.2018 г., 20:30

👻#Snapchat users are young, American, and Snap a lot! 🚀@PerspectiveIX 👻 Add us on Snapchat: http://prs.pctvix.co/SnapchatIX Do you you use Snapchat? 👍🏻 Yes 👎🏻 No

Hashtags

123•••78
ПретходнаСтраница 1 од 8Следна