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

Резултати

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

Пребарај: #oxygenos

当前筛选 #oxygenos清除筛选
Nothing Phone (2) | Updates

@NothingPhone2Updates · Post #731 · 14.04.2026 г., 11:56

Oxygen OS - Port | Android 16 | Nothing Phone (2) ✍️Details: - Based On: OxygenOS 16.0.3 (Base Oneplus 12R) - Version: 1.2.0 - Codename: #Pong - Build date: 14/04/26 🔽 Chnangelog & Download:Here ❌ Known Issues: Here 🔖 Tags: #OxygenOS#Port ⚠️ Notes - SELinux is Permissive. - FW is included, do not flash again! - Root: The shipped kernel is rooted with KSU (KernelSU) by default. - Kernels: Custom kernels are NOT supported. - This build uses a non-secure crypto engine implementation. Any passwords set for privacy features (such as app lock, app hiding, or file vault) can be easily bypassed by simply deleting the associated storage files. Do not rely on it for real security or for protecting sensitive personal data. Special Thanks to @Superuser1958 and @GhostRX89! 👤 Maintainers : @CyberPhantom52 | @El_pong 💬 Chat: @NothingPhone2 🔔 Updates: @NothingPhone2Updates

Nothing Phone (2) | Updates

@NothingPhone2Updates · Post #728 · 10.04.2026 г., 14:52

Oxygen OS - Port | Android 16 | Nothing Phone (2) ✍️Details: - Based On: OxygenOS 16.0.3 (Base Oneplus 12R) - Version: 1.1.0 - Codename: #Pong - Build date: 23/03/26 🔽 Cnangelog & Download:Here ❌ Known Issues: Here 🔖 Tags: #OxygenOS#Port ⚠️ Notes - SELinux is Permissive. - Root: The shipped kernel is rooted with KSU (KernelSU) by default. - Kernels: Custom kernels are NOT supported. - Encryption: Storage is NOT encrypted. A Format Data is mandatory if you are currently encrypted. - This build uses a non-secure crypto engine implementation. Any passwords set for privacy features (such as app lock, app hiding, or file vault) can be easily bypassed by simply deleting the associated storage files. Do not rely on it for real security or for protecting sensitive personal data. Special Thanks to @Superuser1958 and @GhostRX89 👤 Maintainers : @CyberPhantom52 | @El_pong 💬 Chat: @NothingPhone2 🔔 Updates: @NothingPhone2Updates

Nothing Phone (2) | Updates

@NothingPhone2Updates · Post #723 · 23.03.2026 г., 07:20

Oxygen OS - Port | Android 16 | Nothing Phone (2) ✍️Details: - Version: 16.0.3 RC.1 (Base Oneplus 12R) - Codename: #Pong - Build date: 23/03/26 🔽 Download:Here 💰 Changelogs & Flashing: Here ❌ Known Issues: Here 🔖 Tags: #OxygenOS#Port ⚠️ Notes - SELinux is Permissive. - Root: The shipped kernel is rooted with KSU (KernelSU) by default. - Kernels: Custom kernels are NOT supported. - Encryption: Storage is NOT encrypted. A Format Data is mandatory if you are currently encrypted. - FOD Brightness Limitation: The fingerprint scanner will only register successfully when your screen brightness is manually set to at least 70%. Will be fixed in a future release. - This build uses a NON-secure cryptoeng implementation. Any password protection can be trivially bypassed by deleting the storage files. Use this only to get the features working; do not rely on it for actual security or storing sensitive personal data. 👤 Maintainers : @CyberPhantom52 | @El_pong 💬 Chat: @NothingPhone2 🔔 Updates: @NothingPhone2Updates

Oneplus 13 Updates

@OnePlus13Series · Post #341 · 13.11.2025 г., 15:50

OnePlus 13 Specifications Codename: dodge cc: TechleaksZone • 6.82" (3168×1440 px) 2K+ BOE X2 LTPO AMOLED display • 1-120Hz variable refresh rate • 4500nits peak brightness • 2160Hz PWM Dimming • Dolby Vision; 1.07 billion colors • Crystal Shield glass protection • Snapdragon 8 Elite SoC • LPDDR5X RAM; UFS 4.0 storage • 9925mm² VC chamber • 50MP main (LYT-T 808, OIS) • 50MP Ultrawide (JN5); 2.5cm macro • 50MP 3X Telephoto (LYT-600; OIS) • 120X Digital Zoom; Hassleblad camera • 32MP Front camera • AAC CSA+ 0916 X-axis linear motor (volume 602mm³) • Goodix Ultrasonic fingerprint • IR Blaster; Alert Slider • Dust & water resistant (IP68 + IP69) • Stereo speakers, OReality & OHaptics • 6000mAh battery; USB-C 3.2 Gen 1 • 100W wired (Max 6.0A at 10V) + 50W wireless charging (Upto 18W PD - IN variant) •4 AndroidOS upgrades + 6yrs Security Patches. (Android 15 OOB) •Lifetime Display Warranty for greenline concerns (For India) @OnePlus13Series | @OnePlus13SeriesChatRoom #oneplus13#specs#oxygenos