cruisediary / Comets
Licence: mit
☄️Comets: Animating Particles in Swift
Stars: ✭ 556
Programming Languages
swift
15916 projects
Projects that are alternatives of or similar to Comets
phaser-particle-editor-plugin
This plugin creates particles based on JSON data generated by Phaser Particle Editor
Stars: ✭ 28 (-94.96%)
Mutual labels: particle
skyline
Some canvas experiments... like drawing a procedurally generated skyline. Also featuring fun explosions :D
Stars: ✭ 24 (-95.68%)
Mutual labels: particle
spark-sdk-ios
DEPRECATED Particle iOS Cloud SDK. Use -->
Stars: ✭ 52 (-90.65%)
Mutual labels: particle
ParticleLib
Multiversion spigot library supporting all particles and their data (1.8-1.18.2)
Stars: ✭ 156 (-71.94%)
Mutual labels: particle
power-mode-input
PowerModeInput can make your text input box more compelling
Stars: ✭ 68 (-87.77%)
Mutual labels: particle
po-util
Classic Edition of po-util: The Ultimate Local Particle Experience for Linux and macOS
Stars: ✭ 51 (-90.83%)
Mutual labels: particle
particle-cookbook
A collection of programming snippets, tips, and tricks for developing with Particle IoT devices
Stars: ✭ 20 (-96.4%)
Mutual labels: particle
Paperino
E-Paper display library for the Particle & Arduino family.
Stars: ✭ 35 (-93.71%)
Mutual labels: particle
SparkJson
JSON library Ported from @bblanchon for Spark Core
Stars: ✭ 36 (-93.53%)
Mutual labels: particle
Three.proton
three.proton is a magical 3d particle engine using three.js library. It is based on the Proton engine library.
Stars: ✭ 327 (-41.19%)
Mutual labels: particle
neopo
A lightweight solution for local Particle development.
Stars: ✭ 19 (-96.58%)
Mutual labels: particle
Timelineparticlecontrol
An example of controlling particle system from timeline.
Stars: ✭ 348 (-37.41%)
Mutual labels: particle
tdme2
TDME2 - ThreeDeeMiniEngine2 is a lightweight, multi-platform 3D engine including tools suited for 3D game/application development using C++
Stars: ✭ 86 (-84.53%)
Mutual labels: particle
Comets
☄️ Comets: Animating Particles in Swift
animation made by kevin as part of Voicy design
implements Bennet van der Linden medium Comets: Animating Particles in Swift
Example
// Customize your comet
let width = view.bounds.width
let height = view.bounds.height
let comets = [Comet(startPoint: CGPoint(x: 100, y: 0),
endPoint: CGPoint(x: 0, y: 100),
lineColor: UIColor.white.withAlphaComponent(0.2),
cometColor: UIColor.white),
Comet(startPoint: CGPoint(x: 0.4 * width, y: 0),
endPoint: CGPoint(x: width, y: 0.8 * width),
lineColor: UIColor.white.withAlphaComponent(0.2),
cometColor: UIColor.white),
Comet(startPoint: CGPoint(x: 0.8 * width, y: 0),
endPoint: CGPoint(x: width, y: 0.2 * width),
lineColor: UIColor.white.withAlphaComponent(0.2),
cometColor: UIColor.white),
Comet(startPoint: CGPoint(x: width, y: 0.2 * height),
endPoint: CGPoint(x: 0, y: 0.25 * height),
lineColor: UIColor.white.withAlphaComponent(0.2),
cometColor: UIColor.white),
Comet(startPoint: CGPoint(x: 0, y: height - 0.8 * width),
endPoint: CGPoint(x: 0.6 * width, y: height),
lineColor: UIColor.white.withAlphaComponent(0.2),
cometColor: UIColor.white),
Comet(startPoint: CGPoint(x: width - 100, y: height),
endPoint: CGPoint(x: width, y: height - 100),
lineColor: UIColor.white.withAlphaComponent(0.2),
cometColor: UIColor.white),
Comet(startPoint: CGPoint(x: 0, y: 0.8 * height),
endPoint: CGPoint(x: width, y: 0.75 * height),
lineColor: UIColor.white.withAlphaComponent(0.2),
cometColor: UIColor.white)]
// draw line track and animate
for comet in comets {
view.layer.addSublayer(comet.drawLine())
view.layer.addSublayer(comet.animate())
}
Requirements
Comets is written in Xcode 10, Swift 5.0, iOS 9.0 Required
📲 Installation
Comets is available through Cocoapods or Carthage.
Cocoapods
pod "Comets"
Carthage
github "cruisediary/Comets" ~> 0.3.1
❤️ Contribution
Pull requests are always welcomed 🏄🏼
👨💻 Author
cruz, [email protected]
🛡 License
Comets is available under the MIT license. See the LICENSE file for more info.
Note that the project description data, including the texts, logos, images, and/or trademarks,
for each open source project belongs to its rightful owner.
If you wish to add or remove any projects, please contact us at [email protected].