Skip to content

Commit

Permalink
Include new image in README
Browse files Browse the repository at this point in the history
  • Loading branch information
Jamil committed Aug 27, 2014
1 parent 37e5efe commit f6037ee
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ JDCarouselControl

`JDCarouselControl` is a subclass of `UIControl` which mimics some of the behaviour of `UISegmentedControl` in a visually different way. It's still somewhat crude so the functionality is rather limited, and don't expect it to be anywhere near bug-free.

![](http://s16.postimg.org/rvgpe3byt/Browser_Preview_tmp_2.gif)
![](sample.png)

You can change the ratio of the inner to the outer radius using the `#define`'d value; but make sure that the view placement radius is adjusted correctly. It isn't something you can change dynamically because I haven't found a quantitative relationship between the two. So if you change `INNER_PROPORTION`, make sure to play around with `VIEW_RADIUS_PLACEMENT_PROPORTION` such that the segment views are centred within the drawn segments. Just as the radius placement proportion is the ratio of the radius of the view placement to the radius of the outer circle, `VIEW_SCALING_FACTOR` is the ratio of the *size* of the views to the radius of the outer circle. This value seems to work for most of the use cases I've encountered.

## Licensing and Attribution
Feel free to use without permission or attribution. It'd be nice if you let me know if you incorporated this into your project though :)
Feel free to use without permission or attribution. It'd be nice if you let me know if you incorporated this into your project though :)

0 comments on commit f6037ee

Please sign in to comment.