Coder Social home page Coder Social logo

chengchao12138 / lxseqview Goto Github PK

View Code? Open in Web Editor NEW

This project forked from xx-li/lxseqview

0.0 2.0 0.0 55 KB

一个用于音乐播放状态显示的柱状图动画。动画效果非常平滑,且随机无规律。

License: Apache License 2.0

Objective-C 100.00%

lxseqview's Introduction

LXSEQView

使用4个Layer实现的音乐播放柱状动画,一般用于显示音乐播放的状态。动画效果非常平滑,且随机无规律。

###图示如下:

###API说明

/*! 开始动画 */
- (void)startAnimation;

/*! 结束动画 */
- (void) stopAnimation;

/*! 柱子的宽度 */
@property (assign, nonatomic) CGFloat pillarWidth;

/*! 柱子的颜色 */
@property (strong, nonatomic) UIColor * pillarColor;

###使用样例

- (void)viewDidLoad {
    [super viewDidLoad];
    self.seqView1.pillarColor = [UIColor redColor];
    self.seqView1.pillarWidth = 2;
    
    self.seqView2.pillarColor = [UIColor orangeColor];
    self.seqView2.pillarWidth = 4;
}

- (void) viewDidAppear:(BOOL)animated {
    [super viewDidAppear:animated];
    [self.seqView1 startAnimation];
    [self.seqView2 startAnimation];
}

lxseqview's People

Contributors

xx-li avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.