Permalink
Browse files

Fixed Readme to include addition of CGSize.

  • Loading branch information...
1 parent 613b417 commit 20603ef7682f5d6b7195c6a20ed3905d09e8a800 @ludwigschubert ludwigschubert committed Jul 29, 2012
Showing with 7 additions and 1 deletion.
  1. +7 −1 README.md
View
@@ -239,20 +239,25 @@ Sometimes you will find it necessary to animate a complex value, such as a `CGPo
PRTweenCGPointLerpPeriod *period = [PRTweenCGPointLerpPeriod periodWithStartCGPoint:CGPointMake(0, 0) endCGPoint:CGPointMake(100, 100) duration:2];
```
-PRTween currently has built-in lerps for `CGPoint` and `CGRect` through `PRTweenCGPointLerpPeriod` and `PRTweenCGRectLerpPeriod`. Lerps are also available as shorthands:
+PRTween currently has built-in lerps for `CGPoint` and `CGRect` and `CGSize` through `PRTweenCGPointLerpPeriod`, `PRTweenCGRectLerpPeriod` and `PRTweenCGSizeLerpPeriod`. Lerps are also available as shorthands:
```objective-c
// for CGPoint
[PRTweenCGPointLerp lerp:property:from:to:duration:timingFunction:target:completeSelector:]
[PRTweenCGPointLerp lerp:property:from:to:duration:]
+// for CGSize
+[PRTweenCGSizeLerp lerp:property:from:to:duration:timingFunction:target:completeSelector:]
+[PRTweenCGSizeLerp lerp:property:from:to:duration:]
+
// for CGRect
[PRTweenCGRectLerp lerp:property:from:to:duration:timingFunction:target:completeSelector:]
[PRTweenCGRectLerp lerp:property:from:to:duration:]
// blocks for iOS 4 or greater
[PRTweenCGPointLerp lerp:property:from:to:duration:timingFunction:target:updateBlock:completeBlock:]
+[PRTweenCGSizeLerp lerp:property:from:to:duration:timingFunction:target:updateBlock:completeBlock:]
[PRTweenCGRectLerp lerp:property:from:to:duration:timingFunction:target:updateBlock:completeBlock:]
```
@@ -283,6 +288,7 @@ Contributors
* [Dominik Hofmann](https://github.com/dominikhofmann/)
* [Matt Herzog](https://github.com/mattherzog/)
* [Robert Brisita](https://github.com/transmitiveRB/)
+* [Ludwig Schubert](https://github.com/ludwigschubert)
License
===

0 comments on commit 20603ef

Please sign in to comment.