GithubHelp home page GithubHelp logo

utsavdusad / ffangularpointilism Goto Github PK

View Code? Open in Web Editor NEW

This project forked from showtimes/ffangularpointilism

0.0 2.0 0.0 609 KB

Triangles for iOS!

License: MIT License

Objective-C 98.70% C 1.30%

ffangularpointilism's Introduction

Angular Pointilism

Triangles for iOS!

In summary, this library is build from two pieces. The first piece is the triangular-mosaic image blur which can be applied to any UIImageView as an alternative (and prettier) to UIBlurEffect. The second piece is the shuttering triangles animation which (as far as I know) has no practical application and was built purely for aesthetic pleasure.

You may dive right in with the included demo; simply open the .xcodeproj and run on a 4" display

Feature set is twofold

#####1. Animatable iOS mosaic-like image filter #####

Note: Currently this library only supports XIB instantiation and has no exposed property for changing triangle size. (Would love to see a PR adding such functionality)

![animatedGif] (https://s3.amazonaws.com/Find-and-Form/portolio/TriangularPoint.gif)

###Output the filtered image###

![static] (http://i.imgur.com/RVNZYe6.png)


##### 2. Animatable Shuttering & Undulation ![mov](https://s3.amazonaws.com/Find-and-Form/animatedangular-1.gif)

This shuttering effect is best described within the context of cellular automata. The following properties are available via public API (from FFShutteringView.h):

/**
 *  The amount of shuttering to show from the bottom up, and top down. A value of half the height will show all shuttering. A value of 0 - (2 * triangular height) will show no shuttering.
 *  Default is 100
 */
@property (nonatomic) NSInteger topBottomMarginMaskLength;

/**
 *  The number of frames that will be called each second.
 *  Default is 30 FPS.
 */
@property (nonatomic) CGFloat frameRate;

/**
 *  The amount of time until the class automatically halts the life of each triangular cell. For infinite life, set to 0.
 *  Default is 0;
 */
@property (nonatomic) NSTimeInterval artificialLifeSpan;
/**
 *  This translates to triangle cell density. The higher this number, the less dense the cells. This figure represents the maximum amount of time a cell may exist with 0 alpha. 
 *  Default is 200
 */
@property (nonatomic) NSUInteger maximumAllowedDeathTicks;

Note: Currently, in order to use this feature, one must copy the 4 triangles for the xcassets folder into their working directory with identical names. This will change in future updates.

Contributing

All contributions welcome! I have no agenda as to where this project must go, what direction it is to take; make it your own!

ffangularpointilism's People

Contributors

wittedhaddock avatar

Watchers

James Cloos avatar Utsav Dusad 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.