MIT License

项目介绍

cruisediary/Comets 是一个托管在 GitHub 上的开源项目,主要使用 Swift 编写,采用 MIT License 许可证,目前获得 612 个 Star、40 次 Fork。

仓库全名
cruisediary/Comets
开源许可证
MIT License
Star 数
612
Fork 数
40
未关闭 Issue
3

README 摘要

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 Requirements Comets is written in Xcode 10, Swift 5.0, iOS 9.0 Required 📲 Installation Comets is available through Cocoapods or Carthage. Cocoapods Carthage ❤️ Contribution Pull requests are always welcomed 🏄🏼 👨‍💻 Author cruz,…

完整内容见 GitHub 原始 README 或本页 。

常见问题

Comets 用什么语言开发?

主要使用 Swift 编写,采用 MIT License 许可证,目前有 612 个 Star。

Comets 可以免费商用吗?

仓库采用 MIT License 许可证,可免费使用与修改,商业使用请遵守许可证条款(例如保留版权声明与许可声明)。

如何获取 Comets 的源码?

可以直接克隆仓库:git clone https://github.com/cruisediary/Comets.git,默认分支为 master;安装与运行步骤见仓库 README。

Comets 最近还在维护吗?

仓库最近一次更新为 2019年8月3日,当前有 3 个未关闭 Issue;Star 数为 612,可作为社区活跃度的参考。

关于

☄️Comets: Animating Particles in Swift

描述取自 GitHub 官方 API,中文内容由 GitRead 中文社区 编辑团队整理。

简要分析

热度分
699
价值分
379
活跃状态
活跃

语言占比

Objective-C
Ruby
Swift

Release

README

Comets

☄️ Comets: Animating Particles in Swift

Swift Version License Platform Carthage compatible

comet.gif

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())
}

comet.gif

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.

评论

暂无评论