Skip to content

Commit

Permalink
Update image-modification-block.md (TextureGroup#474)
Browse files Browse the repository at this point in the history
* Update image-modification-block.md

Just some minor proposals for improvements:
- Removed white spaces, which caused the first line in the image modification block to be shown a bit "messy"
- Using the Null coalescing operator in the following line

* Update image-modification-block.md

Now, with the second change as well.
  • Loading branch information
oferRounds authored and bernieperez committed Apr 25, 2018
1 parent b9a895b commit 436ad7c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions docs/_docs/image-modification-block.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@ By assigning an `imageModificationBlock` to your imageNode, you can define a set
<pre lang="objc" class="objcCode">
_backgroundImageNode.imageModificationBlock = ^(UIImage *image) {
UIImage *newImage = [image applyBlurWithRadius:30
tintColor:[UIColor colorWithWhite:0.5 alpha:0.3]
saturationDeltaFactor:1.8
maskImage:nil];
return newImage ? newImage : image;
tintColor:[UIColor colorWithWhite:0.5 alpha:0.3]
saturationDeltaFactor:1.8
maskImage:nil];
return newImage ?: image;
};

//some time later...
Expand Down

0 comments on commit 436ad7c

Please sign in to comment.