├── Demo ├── TriangularPointilism.xcodeproj │ └── project.pbxproj ├── TriangularPointilism │ ├── Base.lproj │ │ └── Main.storyboard │ ├── Classes │ │ ├── TPAppDelegate.h │ │ └── TPAppDelegate.m │ ├── Images.xcassets │ │ ├── AppIcon.appiconset │ │ │ └── Contents.json │ │ ├── LaunchImage.launchimage │ │ │ └── Contents.json │ │ ├── NonFilter.imageset │ │ │ ├── Contents.json │ │ │ └── lvl1-jpg.png │ │ ├── bottomLeft.imageset │ │ │ ├── 32_1.png │ │ │ └── Contents.json │ │ ├── bottomRight.imageset │ │ │ ├── 32_4.png │ │ │ └── Contents.json │ │ ├── topLeft.imageset │ │ │ ├── 32_2.png │ │ │ └── Contents.json │ │ ├── topRight.imageset │ │ │ ├── 32_3.png │ │ │ └── Contents.json │ │ └── ww.imageset │ │ │ ├── Contents.json │ │ │ └── tumblr_mg6mrft7nI1qzpxx1o1_1280.jpg │ ├── TriangularPointilism-Info.plist │ ├── TriangularPointilism-Prefix.pch │ ├── ViewControllers │ │ ├── FFShutteringViewController.h │ │ ├── FFShutteringViewController.m │ │ ├── TPViewController.h │ │ └── TPViewController.m │ ├── en.lproj │ │ └── InfoPlist.strings │ └── main.m └── TriangularPointilismTests │ ├── TriangularPointilismTests-Info.plist │ ├── TriangularPointilismTests.m │ └── en.lproj │ └── InfoPlist.strings ├── FFAngularPointilism ├── FFDoubleTriangleView.h ├── FFDoubleTriangleView.m ├── FFDoubleTriangleViewEffect.h ├── FFShutteringView.h └── FFShutteringView.m ├── LICENSE └── README.md /Demo/TriangularPointilism.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 46; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | 1A9D6BE6199BF7F6000AC1F5 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 1A9D6BE5199BF7F6000AC1F5 /* Foundation.framework */; }; 11 | 1A9D6BE8199BF7F6000AC1F5 /* CoreGraphics.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 1A9D6BE7199BF7F6000AC1F5 /* CoreGraphics.framework */; }; 12 | 1A9D6BEA199BF7F6000AC1F5 /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 1A9D6BE9199BF7F6000AC1F5 /* UIKit.framework */; }; 13 | 1A9D6BF0199BF7F6000AC1F5 /* InfoPlist.strings in Resources */ = {isa = PBXBuildFile; fileRef = 1A9D6BEE199BF7F6000AC1F5 /* InfoPlist.strings */; }; 14 | 1A9D6BF2199BF7F6000AC1F5 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 1A9D6BF1199BF7F6000AC1F5 /* main.m */; }; 15 | 1A9D6BF9199BF7F6000AC1F5 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 1A9D6BF7199BF7F6000AC1F5 /* Main.storyboard */; }; 16 | 1A9D6BFE199BF7F6000AC1F5 /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 1A9D6BFD199BF7F6000AC1F5 /* Images.xcassets */; }; 17 | 1A9D6C05199BF7F6000AC1F5 /* XCTest.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 1A9D6C04199BF7F6000AC1F5 /* XCTest.framework */; }; 18 | 1A9D6C06199BF7F6000AC1F5 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 1A9D6BE5199BF7F6000AC1F5 /* Foundation.framework */; }; 19 | 1A9D6C07199BF7F6000AC1F5 /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 1A9D6BE9199BF7F6000AC1F5 /* UIKit.framework */; }; 20 | 1A9D6C0F199BF7F6000AC1F5 /* InfoPlist.strings in Resources */ = {isa = PBXBuildFile; fileRef = 1A9D6C0D199BF7F6000AC1F5 /* InfoPlist.strings */; }; 21 | 1A9D6C11199BF7F6000AC1F5 /* TriangularPointilismTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 1A9D6C10199BF7F6000AC1F5 /* TriangularPointilismTests.m */; }; 22 | 1AC875A3199E7ADF006C7BA9 /* QuartzCore.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 1AC875A2199E7ADF006C7BA9 /* QuartzCore.framework */; }; 23 | 697C133619F696F500970279 /* TPAppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 697C133019F696F500970279 /* TPAppDelegate.m */; }; 24 | 697C133719F696F500970279 /* FFShutteringViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 697C133319F696F500970279 /* FFShutteringViewController.m */; }; 25 | 697C133819F696F500970279 /* TPViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 697C133519F696F500970279 /* TPViewController.m */; }; 26 | 699AA98D19F68D3B00967A95 /* FFDoubleTriangleView.m in Sources */ = {isa = PBXBuildFile; fileRef = 699AA98A19F68D3B00967A95 /* FFDoubleTriangleView.m */; }; 27 | 699AA98E19F68D3B00967A95 /* FFShutteringView.m in Sources */ = {isa = PBXBuildFile; fileRef = 699AA98C19F68D3B00967A95 /* FFShutteringView.m */; }; 28 | /* End PBXBuildFile section */ 29 | 30 | /* Begin PBXContainerItemProxy section */ 31 | 1A9D6C08199BF7F6000AC1F5 /* PBXContainerItemProxy */ = { 32 | isa = PBXContainerItemProxy; 33 | containerPortal = 1A9D6BDA199BF7F6000AC1F5 /* Project object */; 34 | proxyType = 1; 35 | remoteGlobalIDString = 1A9D6BE1199BF7F6000AC1F5; 36 | remoteInfo = TriangularPointilism; 37 | }; 38 | /* End PBXContainerItemProxy section */ 39 | 40 | /* Begin PBXFileReference section */ 41 | 1A9D6BE2199BF7F6000AC1F5 /* TriangularPointilism.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = TriangularPointilism.app; sourceTree = BUILT_PRODUCTS_DIR; }; 42 | 1A9D6BE5199BF7F6000AC1F5 /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = System/Library/Frameworks/Foundation.framework; sourceTree = SDKROOT; }; 43 | 1A9D6BE7199BF7F6000AC1F5 /* CoreGraphics.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreGraphics.framework; path = System/Library/Frameworks/CoreGraphics.framework; sourceTree = SDKROOT; }; 44 | 1A9D6BE9199BF7F6000AC1F5 /* UIKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = UIKit.framework; path = System/Library/Frameworks/UIKit.framework; sourceTree = SDKROOT; }; 45 | 1A9D6BED199BF7F6000AC1F5 /* TriangularPointilism-Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = "TriangularPointilism-Info.plist"; sourceTree = ""; }; 46 | 1A9D6BEF199BF7F6000AC1F5 /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = en.lproj/InfoPlist.strings; sourceTree = ""; }; 47 | 1A9D6BF1199BF7F6000AC1F5 /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = ""; }; 48 | 1A9D6BF3199BF7F6000AC1F5 /* TriangularPointilism-Prefix.pch */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "TriangularPointilism-Prefix.pch"; sourceTree = ""; }; 49 | 1A9D6BF8199BF7F6000AC1F5 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; 50 | 1A9D6BFD199BF7F6000AC1F5 /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Images.xcassets; sourceTree = ""; }; 51 | 1A9D6C03199BF7F6000AC1F5 /* TriangularPointilismTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = TriangularPointilismTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; 52 | 1A9D6C04199BF7F6000AC1F5 /* XCTest.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = XCTest.framework; path = Library/Frameworks/XCTest.framework; sourceTree = DEVELOPER_DIR; }; 53 | 1A9D6C0C199BF7F6000AC1F5 /* TriangularPointilismTests-Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = "TriangularPointilismTests-Info.plist"; sourceTree = ""; }; 54 | 1A9D6C0E199BF7F6000AC1F5 /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = en.lproj/InfoPlist.strings; sourceTree = ""; }; 55 | 1A9D6C10199BF7F6000AC1F5 /* TriangularPointilismTests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = TriangularPointilismTests.m; sourceTree = ""; }; 56 | 1AC875A2199E7ADF006C7BA9 /* QuartzCore.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = QuartzCore.framework; path = System/Library/Frameworks/QuartzCore.framework; sourceTree = SDKROOT; }; 57 | 697C132F19F696F500970279 /* TPAppDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = TPAppDelegate.h; sourceTree = ""; }; 58 | 697C133019F696F500970279 /* TPAppDelegate.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = TPAppDelegate.m; sourceTree = ""; }; 59 | 697C133219F696F500970279 /* FFShutteringViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = FFShutteringViewController.h; sourceTree = ""; }; 60 | 697C133319F696F500970279 /* FFShutteringViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = FFShutteringViewController.m; sourceTree = ""; }; 61 | 697C133419F696F500970279 /* TPViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = TPViewController.h; sourceTree = ""; }; 62 | 697C133519F696F500970279 /* TPViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = TPViewController.m; sourceTree = ""; }; 63 | 699862E41A2671450063ACBC /* FFDoubleTriangleViewEffect.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = FFDoubleTriangleViewEffect.h; sourceTree = ""; }; 64 | 699AA98919F68D3B00967A95 /* FFDoubleTriangleView.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = FFDoubleTriangleView.h; sourceTree = ""; }; 65 | 699AA98A19F68D3B00967A95 /* FFDoubleTriangleView.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = FFDoubleTriangleView.m; sourceTree = ""; }; 66 | 699AA98B19F68D3B00967A95 /* FFShutteringView.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = FFShutteringView.h; sourceTree = ""; }; 67 | 699AA98C19F68D3B00967A95 /* FFShutteringView.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = FFShutteringView.m; sourceTree = ""; }; 68 | /* End PBXFileReference section */ 69 | 70 | /* Begin PBXFrameworksBuildPhase section */ 71 | 1A9D6BDF199BF7F6000AC1F5 /* Frameworks */ = { 72 | isa = PBXFrameworksBuildPhase; 73 | buildActionMask = 2147483647; 74 | files = ( 75 | 1AC875A3199E7ADF006C7BA9 /* QuartzCore.framework in Frameworks */, 76 | 1A9D6BE8199BF7F6000AC1F5 /* CoreGraphics.framework in Frameworks */, 77 | 1A9D6BEA199BF7F6000AC1F5 /* UIKit.framework in Frameworks */, 78 | 1A9D6BE6199BF7F6000AC1F5 /* Foundation.framework in Frameworks */, 79 | ); 80 | runOnlyForDeploymentPostprocessing = 0; 81 | }; 82 | 1A9D6C00199BF7F6000AC1F5 /* Frameworks */ = { 83 | isa = PBXFrameworksBuildPhase; 84 | buildActionMask = 2147483647; 85 | files = ( 86 | 1A9D6C05199BF7F6000AC1F5 /* XCTest.framework in Frameworks */, 87 | 1A9D6C07199BF7F6000AC1F5 /* UIKit.framework in Frameworks */, 88 | 1A9D6C06199BF7F6000AC1F5 /* Foundation.framework in Frameworks */, 89 | ); 90 | runOnlyForDeploymentPostprocessing = 0; 91 | }; 92 | /* End PBXFrameworksBuildPhase section */ 93 | 94 | /* Begin PBXGroup section */ 95 | 1A9D6BD9199BF7F6000AC1F5 = { 96 | isa = PBXGroup; 97 | children = ( 98 | 699AA98819F68D3B00967A95 /* FFAngularPointilism */, 99 | 1A9D6BEB199BF7F6000AC1F5 /* TriangularPointilism */, 100 | 1A9D6C0A199BF7F6000AC1F5 /* TriangularPointilismTests */, 101 | 1A9D6BE4199BF7F6000AC1F5 /* Frameworks */, 102 | 1A9D6BE3199BF7F6000AC1F5 /* Products */, 103 | ); 104 | sourceTree = ""; 105 | }; 106 | 1A9D6BE3199BF7F6000AC1F5 /* Products */ = { 107 | isa = PBXGroup; 108 | children = ( 109 | 1A9D6BE2199BF7F6000AC1F5 /* TriangularPointilism.app */, 110 | 1A9D6C03199BF7F6000AC1F5 /* TriangularPointilismTests.xctest */, 111 | ); 112 | name = Products; 113 | sourceTree = ""; 114 | }; 115 | 1A9D6BE4199BF7F6000AC1F5 /* Frameworks */ = { 116 | isa = PBXGroup; 117 | children = ( 118 | 1AC875A2199E7ADF006C7BA9 /* QuartzCore.framework */, 119 | 1A9D6BE5199BF7F6000AC1F5 /* Foundation.framework */, 120 | 1A9D6BE7199BF7F6000AC1F5 /* CoreGraphics.framework */, 121 | 1A9D6BE9199BF7F6000AC1F5 /* UIKit.framework */, 122 | 1A9D6C04199BF7F6000AC1F5 /* XCTest.framework */, 123 | ); 124 | name = Frameworks; 125 | sourceTree = ""; 126 | }; 127 | 1A9D6BEB199BF7F6000AC1F5 /* TriangularPointilism */ = { 128 | isa = PBXGroup; 129 | children = ( 130 | 697C132E19F696F500970279 /* Classes */, 131 | 697C133119F696F500970279 /* ViewControllers */, 132 | 1A9D6BF7199BF7F6000AC1F5 /* Main.storyboard */, 133 | 1A9D6BFD199BF7F6000AC1F5 /* Images.xcassets */, 134 | 1A9D6BEC199BF7F6000AC1F5 /* Supporting Files */, 135 | ); 136 | path = TriangularPointilism; 137 | sourceTree = ""; 138 | }; 139 | 1A9D6BEC199BF7F6000AC1F5 /* Supporting Files */ = { 140 | isa = PBXGroup; 141 | children = ( 142 | 1A9D6BED199BF7F6000AC1F5 /* TriangularPointilism-Info.plist */, 143 | 1A9D6BEE199BF7F6000AC1F5 /* InfoPlist.strings */, 144 | 1A9D6BF1199BF7F6000AC1F5 /* main.m */, 145 | 1A9D6BF3199BF7F6000AC1F5 /* TriangularPointilism-Prefix.pch */, 146 | ); 147 | name = "Supporting Files"; 148 | sourceTree = ""; 149 | }; 150 | 1A9D6C0A199BF7F6000AC1F5 /* TriangularPointilismTests */ = { 151 | isa = PBXGroup; 152 | children = ( 153 | 1A9D6C10199BF7F6000AC1F5 /* TriangularPointilismTests.m */, 154 | 1A9D6C0B199BF7F6000AC1F5 /* Supporting Files */, 155 | ); 156 | path = TriangularPointilismTests; 157 | sourceTree = ""; 158 | }; 159 | 1A9D6C0B199BF7F6000AC1F5 /* Supporting Files */ = { 160 | isa = PBXGroup; 161 | children = ( 162 | 1A9D6C0C199BF7F6000AC1F5 /* TriangularPointilismTests-Info.plist */, 163 | 1A9D6C0D199BF7F6000AC1F5 /* InfoPlist.strings */, 164 | ); 165 | name = "Supporting Files"; 166 | sourceTree = ""; 167 | }; 168 | 697C132E19F696F500970279 /* Classes */ = { 169 | isa = PBXGroup; 170 | children = ( 171 | 697C132F19F696F500970279 /* TPAppDelegate.h */, 172 | 697C133019F696F500970279 /* TPAppDelegate.m */, 173 | ); 174 | path = Classes; 175 | sourceTree = ""; 176 | }; 177 | 697C133119F696F500970279 /* ViewControllers */ = { 178 | isa = PBXGroup; 179 | children = ( 180 | 697C133219F696F500970279 /* FFShutteringViewController.h */, 181 | 697C133319F696F500970279 /* FFShutteringViewController.m */, 182 | 697C133419F696F500970279 /* TPViewController.h */, 183 | 697C133519F696F500970279 /* TPViewController.m */, 184 | ); 185 | path = ViewControllers; 186 | sourceTree = ""; 187 | }; 188 | 699AA98819F68D3B00967A95 /* FFAngularPointilism */ = { 189 | isa = PBXGroup; 190 | children = ( 191 | 699AA98919F68D3B00967A95 /* FFDoubleTriangleView.h */, 192 | 699AA98A19F68D3B00967A95 /* FFDoubleTriangleView.m */, 193 | 699862E41A2671450063ACBC /* FFDoubleTriangleViewEffect.h */, 194 | 699AA98B19F68D3B00967A95 /* FFShutteringView.h */, 195 | 699AA98C19F68D3B00967A95 /* FFShutteringView.m */, 196 | ); 197 | name = FFAngularPointilism; 198 | path = ../FFAngularPointilism; 199 | sourceTree = ""; 200 | }; 201 | /* End PBXGroup section */ 202 | 203 | /* Begin PBXNativeTarget section */ 204 | 1A9D6BE1199BF7F6000AC1F5 /* TriangularPointilism */ = { 205 | isa = PBXNativeTarget; 206 | buildConfigurationList = 1A9D6C14199BF7F6000AC1F5 /* Build configuration list for PBXNativeTarget "TriangularPointilism" */; 207 | buildPhases = ( 208 | 1A9D6BDE199BF7F6000AC1F5 /* Sources */, 209 | 1A9D6BDF199BF7F6000AC1F5 /* Frameworks */, 210 | 1A9D6BE0199BF7F6000AC1F5 /* Resources */, 211 | ); 212 | buildRules = ( 213 | ); 214 | dependencies = ( 215 | ); 216 | name = TriangularPointilism; 217 | productName = TriangularPointilism; 218 | productReference = 1A9D6BE2199BF7F6000AC1F5 /* TriangularPointilism.app */; 219 | productType = "com.apple.product-type.application"; 220 | }; 221 | 1A9D6C02199BF7F6000AC1F5 /* TriangularPointilismTests */ = { 222 | isa = PBXNativeTarget; 223 | buildConfigurationList = 1A9D6C17199BF7F6000AC1F5 /* Build configuration list for PBXNativeTarget "TriangularPointilismTests" */; 224 | buildPhases = ( 225 | 1A9D6BFF199BF7F6000AC1F5 /* Sources */, 226 | 1A9D6C00199BF7F6000AC1F5 /* Frameworks */, 227 | 1A9D6C01199BF7F6000AC1F5 /* Resources */, 228 | ); 229 | buildRules = ( 230 | ); 231 | dependencies = ( 232 | 1A9D6C09199BF7F6000AC1F5 /* PBXTargetDependency */, 233 | ); 234 | name = TriangularPointilismTests; 235 | productName = TriangularPointilismTests; 236 | productReference = 1A9D6C03199BF7F6000AC1F5 /* TriangularPointilismTests.xctest */; 237 | productType = "com.apple.product-type.bundle.unit-test"; 238 | }; 239 | /* End PBXNativeTarget section */ 240 | 241 | /* Begin PBXProject section */ 242 | 1A9D6BDA199BF7F6000AC1F5 /* Project object */ = { 243 | isa = PBXProject; 244 | attributes = { 245 | CLASSPREFIX = TP; 246 | LastUpgradeCheck = 0510; 247 | ORGANIZATIONNAME = FindandForm; 248 | TargetAttributes = { 249 | 1A9D6C02199BF7F6000AC1F5 = { 250 | TestTargetID = 1A9D6BE1199BF7F6000AC1F5; 251 | }; 252 | }; 253 | }; 254 | buildConfigurationList = 1A9D6BDD199BF7F6000AC1F5 /* Build configuration list for PBXProject "TriangularPointilism" */; 255 | compatibilityVersion = "Xcode 3.2"; 256 | developmentRegion = English; 257 | hasScannedForEncodings = 0; 258 | knownRegions = ( 259 | en, 260 | Base, 261 | ); 262 | mainGroup = 1A9D6BD9199BF7F6000AC1F5; 263 | productRefGroup = 1A9D6BE3199BF7F6000AC1F5 /* Products */; 264 | projectDirPath = ""; 265 | projectRoot = ""; 266 | targets = ( 267 | 1A9D6BE1199BF7F6000AC1F5 /* TriangularPointilism */, 268 | 1A9D6C02199BF7F6000AC1F5 /* TriangularPointilismTests */, 269 | ); 270 | }; 271 | /* End PBXProject section */ 272 | 273 | /* Begin PBXResourcesBuildPhase section */ 274 | 1A9D6BE0199BF7F6000AC1F5 /* Resources */ = { 275 | isa = PBXResourcesBuildPhase; 276 | buildActionMask = 2147483647; 277 | files = ( 278 | 1A9D6BFE199BF7F6000AC1F5 /* Images.xcassets in Resources */, 279 | 1A9D6BF0199BF7F6000AC1F5 /* InfoPlist.strings in Resources */, 280 | 1A9D6BF9199BF7F6000AC1F5 /* Main.storyboard in Resources */, 281 | ); 282 | runOnlyForDeploymentPostprocessing = 0; 283 | }; 284 | 1A9D6C01199BF7F6000AC1F5 /* Resources */ = { 285 | isa = PBXResourcesBuildPhase; 286 | buildActionMask = 2147483647; 287 | files = ( 288 | 1A9D6C0F199BF7F6000AC1F5 /* InfoPlist.strings in Resources */, 289 | ); 290 | runOnlyForDeploymentPostprocessing = 0; 291 | }; 292 | /* End PBXResourcesBuildPhase section */ 293 | 294 | /* Begin PBXSourcesBuildPhase section */ 295 | 1A9D6BDE199BF7F6000AC1F5 /* Sources */ = { 296 | isa = PBXSourcesBuildPhase; 297 | buildActionMask = 2147483647; 298 | files = ( 299 | 697C133819F696F500970279 /* TPViewController.m in Sources */, 300 | 699AA98E19F68D3B00967A95 /* FFShutteringView.m in Sources */, 301 | 699AA98D19F68D3B00967A95 /* FFDoubleTriangleView.m in Sources */, 302 | 697C133619F696F500970279 /* TPAppDelegate.m in Sources */, 303 | 1A9D6BF2199BF7F6000AC1F5 /* main.m in Sources */, 304 | 697C133719F696F500970279 /* FFShutteringViewController.m in Sources */, 305 | ); 306 | runOnlyForDeploymentPostprocessing = 0; 307 | }; 308 | 1A9D6BFF199BF7F6000AC1F5 /* Sources */ = { 309 | isa = PBXSourcesBuildPhase; 310 | buildActionMask = 2147483647; 311 | files = ( 312 | 1A9D6C11199BF7F6000AC1F5 /* TriangularPointilismTests.m in Sources */, 313 | ); 314 | runOnlyForDeploymentPostprocessing = 0; 315 | }; 316 | /* End PBXSourcesBuildPhase section */ 317 | 318 | /* Begin PBXTargetDependency section */ 319 | 1A9D6C09199BF7F6000AC1F5 /* PBXTargetDependency */ = { 320 | isa = PBXTargetDependency; 321 | target = 1A9D6BE1199BF7F6000AC1F5 /* TriangularPointilism */; 322 | targetProxy = 1A9D6C08199BF7F6000AC1F5 /* PBXContainerItemProxy */; 323 | }; 324 | /* End PBXTargetDependency section */ 325 | 326 | /* Begin PBXVariantGroup section */ 327 | 1A9D6BEE199BF7F6000AC1F5 /* InfoPlist.strings */ = { 328 | isa = PBXVariantGroup; 329 | children = ( 330 | 1A9D6BEF199BF7F6000AC1F5 /* en */, 331 | ); 332 | name = InfoPlist.strings; 333 | sourceTree = ""; 334 | }; 335 | 1A9D6BF7199BF7F6000AC1F5 /* Main.storyboard */ = { 336 | isa = PBXVariantGroup; 337 | children = ( 338 | 1A9D6BF8199BF7F6000AC1F5 /* Base */, 339 | ); 340 | name = Main.storyboard; 341 | sourceTree = ""; 342 | }; 343 | 1A9D6C0D199BF7F6000AC1F5 /* InfoPlist.strings */ = { 344 | isa = PBXVariantGroup; 345 | children = ( 346 | 1A9D6C0E199BF7F6000AC1F5 /* en */, 347 | ); 348 | name = InfoPlist.strings; 349 | sourceTree = ""; 350 | }; 351 | /* End PBXVariantGroup section */ 352 | 353 | /* Begin XCBuildConfiguration section */ 354 | 1A9D6C12199BF7F6000AC1F5 /* Debug */ = { 355 | isa = XCBuildConfiguration; 356 | buildSettings = { 357 | ALWAYS_SEARCH_USER_PATHS = NO; 358 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 359 | CLANG_CXX_LIBRARY = "libc++"; 360 | CLANG_ENABLE_MODULES = YES; 361 | CLANG_ENABLE_OBJC_ARC = YES; 362 | CLANG_WARN_BOOL_CONVERSION = YES; 363 | CLANG_WARN_CONSTANT_CONVERSION = YES; 364 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 365 | CLANG_WARN_EMPTY_BODY = YES; 366 | CLANG_WARN_ENUM_CONVERSION = YES; 367 | CLANG_WARN_INT_CONVERSION = YES; 368 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 369 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 370 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 371 | COPY_PHASE_STRIP = NO; 372 | GCC_C_LANGUAGE_STANDARD = gnu99; 373 | GCC_DYNAMIC_NO_PIC = NO; 374 | GCC_OPTIMIZATION_LEVEL = 0; 375 | GCC_PREPROCESSOR_DEFINITIONS = ( 376 | "DEBUG=1", 377 | "$(inherited)", 378 | ); 379 | GCC_SYMBOLS_PRIVATE_EXTERN = NO; 380 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 381 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 382 | GCC_WARN_UNDECLARED_SELECTOR = YES; 383 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 384 | GCC_WARN_UNUSED_FUNCTION = YES; 385 | GCC_WARN_UNUSED_VARIABLE = YES; 386 | IPHONEOS_DEPLOYMENT_TARGET = 7.1; 387 | ONLY_ACTIVE_ARCH = YES; 388 | SDKROOT = iphoneos; 389 | }; 390 | name = Debug; 391 | }; 392 | 1A9D6C13199BF7F6000AC1F5 /* Release */ = { 393 | isa = XCBuildConfiguration; 394 | buildSettings = { 395 | ALWAYS_SEARCH_USER_PATHS = NO; 396 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 397 | CLANG_CXX_LIBRARY = "libc++"; 398 | CLANG_ENABLE_MODULES = YES; 399 | CLANG_ENABLE_OBJC_ARC = YES; 400 | CLANG_WARN_BOOL_CONVERSION = YES; 401 | CLANG_WARN_CONSTANT_CONVERSION = YES; 402 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 403 | CLANG_WARN_EMPTY_BODY = YES; 404 | CLANG_WARN_ENUM_CONVERSION = YES; 405 | CLANG_WARN_INT_CONVERSION = YES; 406 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 407 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 408 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 409 | COPY_PHASE_STRIP = YES; 410 | ENABLE_NS_ASSERTIONS = NO; 411 | GCC_C_LANGUAGE_STANDARD = gnu99; 412 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 413 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 414 | GCC_WARN_UNDECLARED_SELECTOR = YES; 415 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 416 | GCC_WARN_UNUSED_FUNCTION = YES; 417 | GCC_WARN_UNUSED_VARIABLE = YES; 418 | IPHONEOS_DEPLOYMENT_TARGET = 7.1; 419 | SDKROOT = iphoneos; 420 | VALIDATE_PRODUCT = YES; 421 | }; 422 | name = Release; 423 | }; 424 | 1A9D6C15199BF7F6000AC1F5 /* Debug */ = { 425 | isa = XCBuildConfiguration; 426 | buildSettings = { 427 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 428 | ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage; 429 | GCC_PRECOMPILE_PREFIX_HEADER = YES; 430 | GCC_PREFIX_HEADER = "TriangularPointilism/TriangularPointilism-Prefix.pch"; 431 | INFOPLIST_FILE = "TriangularPointilism/TriangularPointilism-Info.plist"; 432 | PRODUCT_NAME = "$(TARGET_NAME)"; 433 | WRAPPER_EXTENSION = app; 434 | }; 435 | name = Debug; 436 | }; 437 | 1A9D6C16199BF7F6000AC1F5 /* Release */ = { 438 | isa = XCBuildConfiguration; 439 | buildSettings = { 440 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 441 | ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage; 442 | GCC_PRECOMPILE_PREFIX_HEADER = YES; 443 | GCC_PREFIX_HEADER = "TriangularPointilism/TriangularPointilism-Prefix.pch"; 444 | INFOPLIST_FILE = "TriangularPointilism/TriangularPointilism-Info.plist"; 445 | PRODUCT_NAME = "$(TARGET_NAME)"; 446 | WRAPPER_EXTENSION = app; 447 | }; 448 | name = Release; 449 | }; 450 | 1A9D6C18199BF7F6000AC1F5 /* Debug */ = { 451 | isa = XCBuildConfiguration; 452 | buildSettings = { 453 | BUNDLE_LOADER = "$(BUILT_PRODUCTS_DIR)/TriangularPointilism.app/TriangularPointilism"; 454 | FRAMEWORK_SEARCH_PATHS = ( 455 | "$(SDKROOT)/Developer/Library/Frameworks", 456 | "$(inherited)", 457 | "$(DEVELOPER_FRAMEWORKS_DIR)", 458 | ); 459 | GCC_PRECOMPILE_PREFIX_HEADER = YES; 460 | GCC_PREFIX_HEADER = "TriangularPointilism/TriangularPointilism-Prefix.pch"; 461 | GCC_PREPROCESSOR_DEFINITIONS = ( 462 | "DEBUG=1", 463 | "$(inherited)", 464 | ); 465 | INFOPLIST_FILE = "TriangularPointilismTests/TriangularPointilismTests-Info.plist"; 466 | PRODUCT_NAME = "$(TARGET_NAME)"; 467 | TEST_HOST = "$(BUNDLE_LOADER)"; 468 | WRAPPER_EXTENSION = xctest; 469 | }; 470 | name = Debug; 471 | }; 472 | 1A9D6C19199BF7F6000AC1F5 /* Release */ = { 473 | isa = XCBuildConfiguration; 474 | buildSettings = { 475 | BUNDLE_LOADER = "$(BUILT_PRODUCTS_DIR)/TriangularPointilism.app/TriangularPointilism"; 476 | FRAMEWORK_SEARCH_PATHS = ( 477 | "$(SDKROOT)/Developer/Library/Frameworks", 478 | "$(inherited)", 479 | "$(DEVELOPER_FRAMEWORKS_DIR)", 480 | ); 481 | GCC_PRECOMPILE_PREFIX_HEADER = YES; 482 | GCC_PREFIX_HEADER = "TriangularPointilism/TriangularPointilism-Prefix.pch"; 483 | INFOPLIST_FILE = "TriangularPointilismTests/TriangularPointilismTests-Info.plist"; 484 | PRODUCT_NAME = "$(TARGET_NAME)"; 485 | TEST_HOST = "$(BUNDLE_LOADER)"; 486 | WRAPPER_EXTENSION = xctest; 487 | }; 488 | name = Release; 489 | }; 490 | /* End XCBuildConfiguration section */ 491 | 492 | /* Begin XCConfigurationList section */ 493 | 1A9D6BDD199BF7F6000AC1F5 /* Build configuration list for PBXProject "TriangularPointilism" */ = { 494 | isa = XCConfigurationList; 495 | buildConfigurations = ( 496 | 1A9D6C12199BF7F6000AC1F5 /* Debug */, 497 | 1A9D6C13199BF7F6000AC1F5 /* Release */, 498 | ); 499 | defaultConfigurationIsVisible = 0; 500 | defaultConfigurationName = Release; 501 | }; 502 | 1A9D6C14199BF7F6000AC1F5 /* Build configuration list for PBXNativeTarget "TriangularPointilism" */ = { 503 | isa = XCConfigurationList; 504 | buildConfigurations = ( 505 | 1A9D6C15199BF7F6000AC1F5 /* Debug */, 506 | 1A9D6C16199BF7F6000AC1F5 /* Release */, 507 | ); 508 | defaultConfigurationIsVisible = 0; 509 | defaultConfigurationName = Release; 510 | }; 511 | 1A9D6C17199BF7F6000AC1F5 /* Build configuration list for PBXNativeTarget "TriangularPointilismTests" */ = { 512 | isa = XCConfigurationList; 513 | buildConfigurations = ( 514 | 1A9D6C18199BF7F6000AC1F5 /* Debug */, 515 | 1A9D6C19199BF7F6000AC1F5 /* Release */, 516 | ); 517 | defaultConfigurationIsVisible = 0; 518 | defaultConfigurationName = Release; 519 | }; 520 | /* End XCConfigurationList section */ 521 | }; 522 | rootObject = 1A9D6BDA199BF7F6000AC1F5 /* Project object */; 523 | } 524 | -------------------------------------------------------------------------------- /Demo/TriangularPointilism/Base.lproj/Main.storyboard: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 29 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 55 | 60 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | 97 | 98 | 99 | 100 | 101 | 102 | 103 | 104 | 105 | 106 | 107 | 108 | 109 | 110 | 111 | 112 | 113 | 118 | 127 | 128 | 129 | 130 | 131 | 132 | 133 | 134 | 135 | 136 | 142 | 147 | 152 | 153 | 154 | 155 | 156 | 157 | 158 | 159 | 160 | 161 | 162 | 163 | 164 | 165 | 166 | 167 | 168 | 169 | 170 | 171 | 172 | 173 | 174 | 175 | -------------------------------------------------------------------------------- /Demo/TriangularPointilism/Classes/TPAppDelegate.h: -------------------------------------------------------------------------------- 1 | // 2 | // TPAppDelegate.h 3 | // TriangularPointilism 4 | // 5 | // Created by James Graham on 8/13/14. 6 | // Copyright (c) 2014 FindandForm. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface TPAppDelegate : UIResponder 12 | 13 | @property (strong, nonatomic) UIWindow *window; 14 | 15 | @end 16 | -------------------------------------------------------------------------------- /Demo/TriangularPointilism/Classes/TPAppDelegate.m: -------------------------------------------------------------------------------- 1 | // 2 | // TPAppDelegate.m 3 | // TriangularPointilism 4 | // 5 | // Created by James Graham on 8/13/14. 6 | // Copyright (c) 2014 FindandForm. All rights reserved. 7 | // 8 | 9 | #import "TPAppDelegate.h" 10 | 11 | @implementation TPAppDelegate 12 | 13 | - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions 14 | { 15 | // Override point for customization after application launch. 16 | return YES; 17 | } 18 | 19 | - (void)applicationWillResignActive:(UIApplication *)application 20 | { 21 | // Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state. 22 | // Use this method to pause ongoing tasks, disable timers, and throttle down OpenGL ES frame rates. Games should use this method to pause the game. 23 | } 24 | 25 | - (void)applicationDidEnterBackground:(UIApplication *)application 26 | { 27 | // Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later. 28 | // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits. 29 | } 30 | 31 | - (void)applicationWillEnterForeground:(UIApplication *)application 32 | { 33 | // Called as part of the transition from the background to the inactive state; here you can undo many of the changes made on entering the background. 34 | } 35 | 36 | - (void)applicationDidBecomeActive:(UIApplication *)application 37 | { 38 | // Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface. 39 | } 40 | 41 | - (void)applicationWillTerminate:(UIApplication *)application 42 | { 43 | // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:. 44 | } 45 | 46 | @end 47 | -------------------------------------------------------------------------------- /Demo/TriangularPointilism/Images.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "iphone", 5 | "size" : "29x29", 6 | "scale" : "2x" 7 | }, 8 | { 9 | "idiom" : "iphone", 10 | "size" : "40x40", 11 | "scale" : "2x" 12 | }, 13 | { 14 | "idiom" : "iphone", 15 | "size" : "60x60", 16 | "scale" : "2x" 17 | }, 18 | { 19 | "idiom" : "iphone", 20 | "size" : "60x60", 21 | "scale" : "3x" 22 | } 23 | ], 24 | "info" : { 25 | "version" : 1, 26 | "author" : "xcode" 27 | } 28 | } -------------------------------------------------------------------------------- /Demo/TriangularPointilism/Images.xcassets/LaunchImage.launchimage/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "orientation" : "portrait", 5 | "idiom" : "iphone", 6 | "extent" : "full-screen", 7 | "minimum-system-version" : "7.0", 8 | "scale" : "2x" 9 | }, 10 | { 11 | "orientation" : "portrait", 12 | "idiom" : "iphone", 13 | "subtype" : "retina4", 14 | "extent" : "full-screen", 15 | "minimum-system-version" : "7.0", 16 | "scale" : "2x" 17 | } 18 | ], 19 | "info" : { 20 | "version" : 1, 21 | "author" : "xcode" 22 | } 23 | } -------------------------------------------------------------------------------- /Demo/TriangularPointilism/Images.xcassets/NonFilter.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "scale" : "1x" 6 | }, 7 | { 8 | "idiom" : "universal", 9 | "scale" : "2x", 10 | "filename" : "lvl1-jpg.png" 11 | }, 12 | { 13 | "idiom" : "universal", 14 | "scale" : "3x" 15 | } 16 | ], 17 | "info" : { 18 | "version" : 1, 19 | "author" : "xcode" 20 | } 21 | } -------------------------------------------------------------------------------- /Demo/TriangularPointilism/Images.xcassets/NonFilter.imageset/lvl1-jpg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Showtimes/FFAngularPointilism/b7be1a7ef6169172bbdb966c1fdbce3c4f8bc05d/Demo/TriangularPointilism/Images.xcassets/NonFilter.imageset/lvl1-jpg.png -------------------------------------------------------------------------------- /Demo/TriangularPointilism/Images.xcassets/bottomLeft.imageset/32_1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Showtimes/FFAngularPointilism/b7be1a7ef6169172bbdb966c1fdbce3c4f8bc05d/Demo/TriangularPointilism/Images.xcassets/bottomLeft.imageset/32_1.png -------------------------------------------------------------------------------- /Demo/TriangularPointilism/Images.xcassets/bottomLeft.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "scale" : "1x" 6 | }, 7 | { 8 | "idiom" : "universal", 9 | "scale" : "2x", 10 | "filename" : "32_1.png" 11 | }, 12 | { 13 | "idiom" : "universal", 14 | "scale" : "3x" 15 | } 16 | ], 17 | "info" : { 18 | "version" : 1, 19 | "author" : "xcode" 20 | } 21 | } -------------------------------------------------------------------------------- /Demo/TriangularPointilism/Images.xcassets/bottomRight.imageset/32_4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Showtimes/FFAngularPointilism/b7be1a7ef6169172bbdb966c1fdbce3c4f8bc05d/Demo/TriangularPointilism/Images.xcassets/bottomRight.imageset/32_4.png -------------------------------------------------------------------------------- /Demo/TriangularPointilism/Images.xcassets/bottomRight.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "scale" : "1x" 6 | }, 7 | { 8 | "idiom" : "universal", 9 | "scale" : "2x", 10 | "filename" : "32_4.png" 11 | }, 12 | { 13 | "idiom" : "universal", 14 | "scale" : "3x" 15 | } 16 | ], 17 | "info" : { 18 | "version" : 1, 19 | "author" : "xcode" 20 | } 21 | } -------------------------------------------------------------------------------- /Demo/TriangularPointilism/Images.xcassets/topLeft.imageset/32_2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Showtimes/FFAngularPointilism/b7be1a7ef6169172bbdb966c1fdbce3c4f8bc05d/Demo/TriangularPointilism/Images.xcassets/topLeft.imageset/32_2.png -------------------------------------------------------------------------------- /Demo/TriangularPointilism/Images.xcassets/topLeft.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "scale" : "1x" 6 | }, 7 | { 8 | "idiom" : "universal", 9 | "scale" : "2x", 10 | "filename" : "32_2.png" 11 | }, 12 | { 13 | "idiom" : "universal", 14 | "scale" : "3x" 15 | } 16 | ], 17 | "info" : { 18 | "version" : 1, 19 | "author" : "xcode" 20 | } 21 | } -------------------------------------------------------------------------------- /Demo/TriangularPointilism/Images.xcassets/topRight.imageset/32_3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Showtimes/FFAngularPointilism/b7be1a7ef6169172bbdb966c1fdbce3c4f8bc05d/Demo/TriangularPointilism/Images.xcassets/topRight.imageset/32_3.png -------------------------------------------------------------------------------- /Demo/TriangularPointilism/Images.xcassets/topRight.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "scale" : "1x" 6 | }, 7 | { 8 | "idiom" : "universal", 9 | "scale" : "2x", 10 | "filename" : "32_3.png" 11 | }, 12 | { 13 | "idiom" : "universal", 14 | "scale" : "3x" 15 | } 16 | ], 17 | "info" : { 18 | "version" : 1, 19 | "author" : "xcode" 20 | } 21 | } -------------------------------------------------------------------------------- /Demo/TriangularPointilism/Images.xcassets/ww.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "scale" : "1x" 6 | }, 7 | { 8 | "idiom" : "universal", 9 | "scale" : "2x" 10 | }, 11 | { 12 | "idiom" : "universal", 13 | "scale" : "3x", 14 | "filename" : "tumblr_mg6mrft7nI1qzpxx1o1_1280.jpg" 15 | } 16 | ], 17 | "info" : { 18 | "version" : 1, 19 | "author" : "xcode" 20 | } 21 | } -------------------------------------------------------------------------------- /Demo/TriangularPointilism/Images.xcassets/ww.imageset/tumblr_mg6mrft7nI1qzpxx1o1_1280.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Showtimes/FFAngularPointilism/b7be1a7ef6169172bbdb966c1fdbce3c4f8bc05d/Demo/TriangularPointilism/Images.xcassets/ww.imageset/tumblr_mg6mrft7nI1qzpxx1o1_1280.jpg -------------------------------------------------------------------------------- /Demo/TriangularPointilism/TriangularPointilism-Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleDisplayName 8 | ${PRODUCT_NAME} 9 | CFBundleExecutable 10 | ${EXECUTABLE_NAME} 11 | CFBundleIdentifier 12 | com.FindandForm.JamesGraham.${PRODUCT_NAME:rfc1034identifier} 13 | CFBundleInfoDictionaryVersion 14 | 6.0 15 | CFBundleName 16 | ${PRODUCT_NAME} 17 | CFBundlePackageType 18 | APPL 19 | CFBundleShortVersionString 20 | 1.0 21 | CFBundleSignature 22 | ???? 23 | CFBundleVersion 24 | 1.0 25 | LSRequiresIPhoneOS 26 | 27 | UIMainStoryboardFile 28 | Main 29 | UIRequiredDeviceCapabilities 30 | 31 | armv7 32 | 33 | UISupportedInterfaceOrientations 34 | 35 | UIInterfaceOrientationPortrait 36 | UIInterfaceOrientationLandscapeLeft 37 | UIInterfaceOrientationLandscapeRight 38 | 39 | 40 | 41 | -------------------------------------------------------------------------------- /Demo/TriangularPointilism/TriangularPointilism-Prefix.pch: -------------------------------------------------------------------------------- 1 | // 2 | // Prefix header 3 | // 4 | // The contents of this file are implicitly included at the beginning of every source file. 5 | // 6 | 7 | #import 8 | 9 | #ifndef __IPHONE_5_0 10 | #warning "This project uses features only available in iOS SDK 5.0 and later." 11 | #endif 12 | 13 | #ifdef __OBJC__ 14 | #import 15 | #import 16 | #endif 17 | -------------------------------------------------------------------------------- /Demo/TriangularPointilism/ViewControllers/FFShutteringViewController.h: -------------------------------------------------------------------------------- 1 | // 2 | // FFShutteringViewController.h 3 | // TriangularPointilism 4 | // 5 | // Created by James Graham on 8/20/14. 6 | // Copyright (c) 2014 FindandForm. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface FFShutteringViewController : UIViewController 12 | 13 | @end 14 | -------------------------------------------------------------------------------- /Demo/TriangularPointilism/ViewControllers/FFShutteringViewController.m: -------------------------------------------------------------------------------- 1 | // 2 | // FFShutteringViewController.m 3 | // TriangularPointilism 4 | // 5 | // Created by James Graham on 8/20/14. 6 | // Copyright (c) 2014 FindandForm. All rights reserved. 7 | // 8 | 9 | #import "FFShutteringViewController.h" 10 | #import "FFShutteringView.h" 11 | 12 | @interface FFShutteringViewController () 13 | @property (strong, nonatomic) FFShutteringView *shutteringView; 14 | @property (weak, nonatomic) IBOutlet UIButton *buttonGod; 15 | 16 | - (IBAction)sliderValueChanged:(UISlider *)sender; 17 | @property (weak, nonatomic) IBOutlet UIView *containerShutteringView; 18 | @end 19 | 20 | @implementation FFShutteringViewController 21 | 22 | - (void)viewDidLoad{ 23 | [super viewDidLoad]; 24 | self.shutteringView.coordinateSquaresToOmit = @[@[@0, @0]]; 25 | _shutteringView = [[FFShutteringView alloc] initWithFrame:self.view.bounds]; 26 | [self.containerShutteringView addSubview:_shutteringView]; 27 | } 28 | - (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event{ 29 | } 30 | - (IBAction)sliderValueChanged:(UISlider *)sender { 31 | self.shutteringView.maximumAllowedDeathTicks = 1.0/(sender.value) * 400; 32 | } 33 | - (IBAction)frameRateSliderValueChanged:(UISlider *)sender { 34 | self.shutteringView.frameRate = sender.value * 30; 35 | } 36 | - (IBAction)createLifeButtonReleased:(id)sender { 37 | [self.shutteringView sparkLife]; 38 | self.buttonGod.enabled = NO; 39 | } 40 | @end 41 | -------------------------------------------------------------------------------- /Demo/TriangularPointilism/ViewControllers/TPViewController.h: -------------------------------------------------------------------------------- 1 | // 2 | // TPViewController.h 3 | // TriangularPointilism 4 | // 5 | // Created by James Graham on 8/13/14. 6 | // Copyright (c) 2014 FindandForm. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface TPViewController : UIViewController 12 | @property (strong, nonatomic, readonly) UIImage *image; 13 | @end 14 | -------------------------------------------------------------------------------- /Demo/TriangularPointilism/ViewControllers/TPViewController.m: -------------------------------------------------------------------------------- 1 | // 2 | // TPViewController.m 3 | // TriangularPointilism 4 | // 5 | // Created by James Graham on 8/13/14. 6 | // Copyright (c) 2014 FindandForm. All rights reserved. 7 | // 8 | 9 | #import "TPViewController.h" 10 | #import 11 | #import 12 | #import "FFDoubleTriangleView.h" 13 | @interface TPViewController () 14 | @property (strong, nonatomic) FFDoubleTriangleView *imageView; 15 | @property (weak, nonatomic) IBOutlet UILabel *label; 16 | @property (strong, nonatomic, readwrite) UIImage *image; 17 | @property (weak, nonatomic) IBOutlet UISlider *slider; 18 | @property (strong, nonatomic) IBOutletCollection(UILabel) NSArray *speedIndicationLabels; 19 | @property (weak, nonatomic) IBOutlet UISwitch *switchControl; 20 | @end 21 | 22 | @implementation TPViewController 23 | - (UIImage *)image{ 24 | 25 | if (!_image) { 26 | UIGraphicsBeginImageContext(self.imageView.frame.size); 27 | { 28 | [self.imageView.layer renderInContext:UIGraphicsGetCurrentContext()]; 29 | _image = UIGraphicsGetImageFromCurrentImageContext(); 30 | } 31 | } 32 | return _image; 33 | 34 | 35 | } 36 | - (void)viewDidLoad{ 37 | 38 | _imageView = [[FFDoubleTriangleView alloc] initWithImage:[UIImage imageNamed:@"ww"]]; 39 | _imageView.center = CGPointMake( _imageView.bounds.size.width/2.0, _imageView.bounds.size.height/2.0); 40 | [self.view addSubview:self.imageView]; 41 | [self.imageView snapshotMatrix]; 42 | [super viewDidLoad]; 43 | } 44 | 45 | - (void)hideSpeedIndicators:(BOOL)hide{ 46 | [self.speedIndicationLabels enumerateObjectsUsingBlock:^(id obj, NSUInteger idx, BOOL *stop) { 47 | [obj setHidden:hide]; 48 | }]; 49 | } 50 | 51 | - (IBAction)buttonPressed:(id)sender 52 | { 53 | self.slider.enabled = NO; 54 | self.imageView.timerTimeInterval = (1.001f - self.slider.value) / 5.0f; 55 | 56 | if(self.switchControl.on) 57 | { 58 | [self.imageView startAnimatedEffect:FFDoubleTriangleViewEffectBlackAndWhite 59 | withCompletion:^ 60 | { 61 | [[[UIAlertView alloc] initWithTitle:@"FFAngularPointilism" 62 | message:@"Black and white animation finished." 63 | delegate:self 64 | cancelButtonTitle:@"Ok" 65 | otherButtonTitles:nil] 66 | show]; 67 | }]; 68 | } 69 | else 70 | { 71 | [self.imageView applyFilter]; 72 | } 73 | } 74 | - (IBAction)switchFlipped:(UISwitch *)sender { 75 | if (sender.on) { 76 | self.slider.enabled = YES; 77 | [self hideSpeedIndicators:NO]; 78 | } 79 | else { 80 | self.slider.enabled = NO; 81 | [self hideSpeedIndicators:YES]; 82 | } 83 | } 84 | 85 | 86 | @end 87 | -------------------------------------------------------------------------------- /Demo/TriangularPointilism/en.lproj/InfoPlist.strings: -------------------------------------------------------------------------------- 1 | /* Localized versions of Info.plist keys */ 2 | 3 | -------------------------------------------------------------------------------- /Demo/TriangularPointilism/main.m: -------------------------------------------------------------------------------- 1 | // 2 | // main.m 3 | // TriangularPointilism 4 | // 5 | // Created by James Graham on 8/13/14. 6 | // Copyright (c) 2014 FindandForm. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | #import "TPAppDelegate.h" 12 | 13 | int main(int argc, char * argv[]) 14 | { 15 | @autoreleasepool { 16 | return UIApplicationMain(argc, argv, nil, NSStringFromClass([TPAppDelegate class])); 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /Demo/TriangularPointilismTests/TriangularPointilismTests-Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | ${EXECUTABLE_NAME} 9 | CFBundleIdentifier 10 | com.FindandForm.JamesGraham.${PRODUCT_NAME:rfc1034identifier} 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundlePackageType 14 | BNDL 15 | CFBundleShortVersionString 16 | 1.0 17 | CFBundleSignature 18 | ???? 19 | CFBundleVersion 20 | 1 21 | 22 | 23 | -------------------------------------------------------------------------------- /Demo/TriangularPointilismTests/TriangularPointilismTests.m: -------------------------------------------------------------------------------- 1 | // 2 | // TriangularPointilismTests.m 3 | // TriangularPointilismTests 4 | // 5 | // Created by James Graham on 8/13/14. 6 | // Copyright (c) 2014 FindandForm. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface TriangularPointilismTests : XCTestCase 12 | 13 | @end 14 | 15 | @implementation TriangularPointilismTests 16 | 17 | - (void)setUp 18 | { 19 | [super setUp]; 20 | // Put setup code here. This method is called before the invocation of each test method in the class. 21 | } 22 | 23 | - (void)tearDown 24 | { 25 | // Put teardown code here. This method is called after the invocation of each test method in the class. 26 | [super tearDown]; 27 | } 28 | 29 | - (void)testExample 30 | { 31 | XCTFail(@"No implementation for \"%s\"", __PRETTY_FUNCTION__); 32 | } 33 | 34 | @end 35 | -------------------------------------------------------------------------------- /Demo/TriangularPointilismTests/en.lproj/InfoPlist.strings: -------------------------------------------------------------------------------- 1 | /* Localized versions of Info.plist keys */ 2 | 3 | -------------------------------------------------------------------------------- /FFAngularPointilism/FFDoubleTriangleView.h: -------------------------------------------------------------------------------- 1 | // 2 | // TPDoubleTriangleView.h 3 | // TriangularPointilism 4 | // 5 | // Created by James Graham on 8/15/14. 6 | // Copyright (c) 2014 FindandForm. All rights reserved. 7 | // 8 | 9 | #import 10 | #import "FFDoubleTriangleViewEffect.h" 11 | 12 | /** 13 | * ## This subclass supports both nib and programmatic instantiation ## 14 | */ 15 | @interface FFDoubleTriangleView : UIImageView 16 | 17 | - (instancetype)initWithImage:(UIImage *)image andFrame:(CGRect)frame; 18 | 19 | //Non-Animation Functionality 20 | - (void)applyFilter; 21 | 22 | // Animation Functionality 23 | @property (nonatomic) NSTimeInterval timerTimeInterval; 24 | @property (readonly) FFDoubleTriangleViewEffect currentlyAnimatingEffect; 25 | - (void)startAnimatedEffect:(FFDoubleTriangleViewEffect)effect withCompletion:(void (^)(void))completion; 26 | 27 | //the final black and white image -- only available after nib instantiation 28 | @property (strong, nonatomic, readonly) UIImage *finalbwimage; 29 | 30 | - (void)snapshotMatrix; 31 | 32 | @end 33 | -------------------------------------------------------------------------------- /FFAngularPointilism/FFDoubleTriangleView.m: -------------------------------------------------------------------------------- 1 | // 2 | // TPDoubleTriangleView.m 3 | // TriangularPointilism 4 | // 5 | // Created by James Graham on 8/15/14. 6 | // Copyright (c) 2014 FindandForm. All rights reserved. 7 | // 8 | 9 | #import "FFDoubleTriangleView.h" 10 | #import 11 | 12 | #define FFDoubleTriangleView_DefaultTimerTimeInterval 0.03 13 | 14 | @interface FFDoubleTriangleView() 15 | 16 | @property (strong, nonatomic) NSMutableArray *array; 17 | @property (strong, nonatomic) NSMutableArray *array2; 18 | 19 | 20 | @property (strong, nonatomic) UIImageView *imageGrayscaleView; 21 | 22 | 23 | @property (strong, nonatomic) NSMutableArray *ksubviews; 24 | @property (strong, nonatomic) NSMutableArray *ksublayers; 25 | 26 | @property (strong, nonatomic) UIView *viewMask; 27 | 28 | @property (strong, nonatomic) CAShapeLayer *shapeLayer; 29 | 30 | @property (strong, nonatomic, readwrite) UIImage *finalbwimage; 31 | 32 | @property (nonatomic, strong) void (^completionBlock)(void); 33 | 34 | @end 35 | 36 | @implementation FFDoubleTriangleView{ 37 | NSUInteger row; 38 | NSUInteger pixel; 39 | CGFloat num; 40 | 41 | NSUInteger rowRem; 42 | NSUInteger pixelRem; 43 | 44 | CGRect currentRect; 45 | } 46 | 47 | - (instancetype)initWithImage:(UIImage *)image andFrame:(CGRect)frame 48 | { 49 | self = [super initWithImage:image]; 50 | 51 | if(self) 52 | { 53 | if(!CGRectIsInfinite(frame)) 54 | { 55 | self.frame = frame; 56 | 57 | _currentlyAnimatingEffect = FFDoubleTriangleViewEffectNone; 58 | } 59 | 60 | } 61 | 62 | return self; 63 | } 64 | 65 | - (instancetype)initWithImage:(UIImage *)image 66 | { 67 | return [self initWithImage:image andFrame:CGRectInfinite]; 68 | } 69 | 70 | - (void)awakeFromNib 71 | { 72 | [super awakeFromNib]; 73 | //[self loadMatrix]; 74 | } 75 | 76 | - (void)snapshotMatrix{ 77 | [self loadMatrix]; 78 | 79 | } 80 | 81 | #pragma mark Property accessors 82 | 83 | - (NSMutableArray *)ksubviews 84 | { 85 | if(!_ksubviews) 86 | { 87 | _ksubviews = [NSMutableArray array]; 88 | } 89 | 90 | return _ksubviews; 91 | } 92 | 93 | - (NSMutableArray *)ksublayers 94 | { 95 | if(!_ksublayers) 96 | { 97 | _ksublayers = [NSMutableArray array]; 98 | } 99 | 100 | return _ksublayers; 101 | } 102 | 103 | - (NSTimeInterval)timerTimeInterval 104 | { 105 | // NSAssert(_timerTimeInterval >= 0, @"TIME CANNOT BE LESS THAN 0"); 106 | 107 | if(_timerTimeInterval == 0) 108 | { 109 | return FFDoubleTriangleView_DefaultTimerTimeInterval; 110 | } 111 | 112 | return _timerTimeInterval; 113 | } 114 | 115 | #pragma mark Public methods 116 | 117 | - (void)startAnimatedEffect:(FFDoubleTriangleViewEffect)effect withCompletion:(void (^)(void))completion 118 | { 119 | _currentlyAnimatingEffect = effect; 120 | _completionBlock = [completion copy]; 121 | 122 | [self executeTimer]; 123 | } 124 | 125 | #pragma mark Private methods 126 | 127 | - (void)loadMatrix 128 | { 129 | num = self.frame.size.width/14; 130 | 131 | CGFloat width = self.frame.size.width; 132 | CGFloat height = self.frame.size.height; 133 | CGFloat theBiggestSideLength = MAX(width, height); 134 | 135 | _array = [NSMutableArray array]; 136 | _array2 = [NSMutableArray array]; 137 | 138 | for(int i = 0; i < theBiggestSideLength; i += num) 139 | { 140 | [self.array addObject:[NSMutableArray array]]; 141 | [self.array2 addObject:[NSMutableArray array]]; 142 | } 143 | 144 | for(int i = 0; i < self.array.count; i++) 145 | { 146 | for(int j = 0; j < self.array.count; j++) 147 | { 148 | [self.array[i] addObject:[self getRGBAsFromImage:self.image 149 | atX:j * 2 * num * (width / self.frame.size.width) 150 | andY:i * 2 * num * (height / self.frame.size.height)]]; 151 | 152 | int xIndex = ((j * 2 * num * (width / self.frame.size.width)) - (num / 2.0)); 153 | int yIndex = ((i * 2 * num * (height / self.frame.size.height)) + (num / 2.0)); 154 | xIndex %= (int)width * 2; 155 | yIndex %= (int)width * 2; 156 | NSLog(@"%d", xIndex); 157 | 158 | [self.array2[i] addObject:[self getRGBAsFromImage:self.image 159 | atX:xIndex 160 | andY:yIndex]]; 161 | } 162 | } 163 | 164 | _imageGrayscaleView = [[UIImageView alloc] initWithImage:[self convertToGreyscale:self.image]]; 165 | _finalbwimage = self.imageGrayscaleView.image; 166 | _imageGrayscaleView.frame = self.bounds; 167 | [self insertSubview:_imageGrayscaleView atIndex:0]; 168 | 169 | _viewMask = [[UIView alloc] initWithFrame:self.frame]; 170 | 171 | _viewMask.center = CGPointMake(_viewMask.center.x, 172 | _viewMask.center.y + _viewMask.frame.size.height / 2.0f); 173 | 174 | // [self addSubview:_viewMask]; 175 | // self.imageGrayscaleView.maskView = _viewMask; 176 | 177 | _shapeLayer = [[CAShapeLayer alloc] init]; 178 | CGRect maskRect = CGRectZero; 179 | CGPathRef path = CGPathCreateWithRect(maskRect, NULL); 180 | _shapeLayer.path = path; 181 | CGPathRelease(path); 182 | self.imageGrayscaleView.layer.mask = _shapeLayer; 183 | } 184 | 185 | - (void)updateMaskToRect:(CGRect)rect 186 | { 187 | _shapeLayer.path = CGPathCreateWithRect(rect, NULL); 188 | currentRect = rect; 189 | // [_shapeLayer setNeedsDisplay]; 190 | self.imageGrayscaleView.layer.mask = _shapeLayer; 191 | } 192 | 193 | - (UIColor *)getRGBAsFromImage:(UIImage*)image atX:(int)xx andY:(int)yy{ 194 | /** 195 | * Modified logic from Olie via http://stackoverflow.com/a/1262893 196 | */ 197 | 198 | UIColor *color; 199 | CGImageRef imageRef = [image CGImage]; 200 | 201 | NSUInteger width = CGImageGetWidth(imageRef) ; 202 | NSUInteger height = CGImageGetHeight(imageRef) * (self.frame.size.width / self.bounds.size.width); 203 | CGColorSpaceRef colorSpace = CGColorSpaceCreateDeviceRGB(); 204 | unsigned char *rawData = (unsigned char*) calloc(height * width * 4, sizeof(unsigned char)); 205 | NSUInteger bytesPerPixel = 4; 206 | NSUInteger bytesPerRow = bytesPerPixel * width; 207 | NSUInteger bitsPerComponent = 8; 208 | CGContextRef context = CGBitmapContextCreate(rawData, width, height, 209 | bitsPerComponent, bytesPerRow, colorSpace, 210 | kCGImageAlphaPremultipliedLast | kCGBitmapByteOrder32Big); 211 | CGColorSpaceRelease(colorSpace); 212 | 213 | CGContextDrawImage(context, CGRectMake(0, 0, width, height), imageRef); 214 | CGContextRelease(context); 215 | unsigned long byteIndex = (bytesPerRow * yy) + xx * bytesPerPixel; 216 | 217 | CGFloat red = (rawData[byteIndex] * 1.0) / 255.0; 218 | CGFloat green = (rawData[byteIndex + 1] * 1.0) / 255.0; 219 | CGFloat blue = (rawData[byteIndex + 2] * 1.0) / 255.0; 220 | CGFloat alpha = (rawData[byteIndex + 3] * 1.0) / 255.0; 221 | byteIndex += 4; 222 | 223 | CGFloat lStar; 224 | //first 225 | CGFloat gamma = 2.2f; 226 | CGFloat y = red * pow(red, gamma) + green * pow(green, gamma) + blue * pow(blue, gamma); 227 | lStar = 116 * pow(y, 1.0f/3.0f); 228 | lStar/=255.0f; 229 | 230 | //second 231 | // lStar = (MAX(blue, MAX(red, green)) + MIN(blue, MIN(red, green))) / 2.0f; 232 | color = [UIColor colorWithWhite: lStar alpha:1.0f]; 233 | free(rawData); 234 | return color; 235 | } 236 | 237 | - (void)fire:(NSTimer *)timer 238 | { 239 | pixel++; 240 | 241 | BOOL startRawGray = row * self.array.count + pixel > 5 * self.array.count + 5; 242 | 243 | if(pixel == 5 && row == 2) 244 | { 245 | // s_imageGrayscaleView.hidden = NO; 246 | // [self startRemovingFromBeginning]; 247 | [self removeTile]; 248 | } 249 | 250 | if(pixel >= self.array.count) 251 | { 252 | pixel = 0; 253 | row++; 254 | } 255 | 256 | if(row >= self.array.count) 257 | { 258 | // [timer invalidate]; 259 | // 260 | // 261 | // [self bringSubviewToFront:_imageGrayscaleView]; 262 | // return; 263 | } 264 | else 265 | { 266 | [self drawTile]; 267 | } 268 | 269 | switch(_currentlyAnimatingEffect) 270 | { 271 | case FFDoubleTriangleViewEffectBlackAndWhite: 272 | { 273 | if(startRawGray) 274 | { 275 | CGRect newRect = CGRectMake(0, 0, self.frame.size.width, (num ) * (rowRem +1 )); 276 | [self updateMaskToRect:newRect]; 277 | 278 | pixelRem++; 279 | 280 | if(pixelRem >= self.array.count) 281 | { 282 | pixelRem = 0; 283 | rowRem++; 284 | } 285 | 286 | //Otherwise index overflow 287 | if(rowRem * self.array.count + pixelRem == self.array.count * self.array.count - 1) 288 | { 289 | [timer invalidate]; 290 | 291 | _currentlyAnimatingEffect = FFDoubleTriangleViewEffectNone; 292 | 293 | if (_completionBlock) 294 | { 295 | _completionBlock(); 296 | _completionBlock = nil; 297 | } 298 | 299 | return; 300 | } 301 | 302 | [self removeTile]; 303 | } 304 | 305 | break; 306 | } 307 | case FFDoubleTriangleViewEffectMosaicFilter: 308 | { 309 | break; 310 | } 311 | default: 312 | { 313 | break; 314 | } 315 | } 316 | } 317 | 318 | - (void)executeTimer 319 | { 320 | NSTimer *timer = [NSTimer timerWithTimeInterval:self.timerTimeInterval 321 | target:self 322 | selector:@selector(fire:) 323 | userInfo:nil 324 | repeats:YES]; 325 | 326 | [[NSRunLoop currentRunLoop] addTimer:timer 327 | forMode:NSDefaultRunLoopMode]; 328 | } 329 | 330 | - (void)applyFilter 331 | { 332 | while(row < self.array.count) 333 | { 334 | pixel++; 335 | 336 | if (pixel >= self.array.count) 337 | { 338 | pixel = 0; 339 | row++; 340 | } 341 | 342 | if(row == self.array.count) 343 | { 344 | self.image = self.imageGrayscaleView.image; 345 | // [self startRemovingFromBeginning]; 346 | [self sizeToFit]; 347 | break; 348 | } 349 | 350 | [self drawTile]; 351 | } 352 | } 353 | 354 | - (void)removeTile 355 | { 356 | NSUInteger index = rowRem * self.array.count + pixelRem; 357 | 358 | CAShapeLayer *layer = self.ksublayers[index]; 359 | [layer removeFromSuperlayer]; 360 | 361 | UIView *view = self.ksubviews[index]; 362 | [view removeFromSuperview]; 363 | } 364 | 365 | - (void)drawTile 366 | { 367 | UIView *view = [[UIView alloc] initWithFrame:CGRectMake(pixel * num, row * num, num, num)]; 368 | view.backgroundColor = [self.array[row] objectAtIndex:pixel]; 369 | [self addSubview:view]; 370 | [self.ksubviews addObject:view]; 371 | UIBezierPath *path = [UIBezierPath bezierPath]; 372 | [path moveToPoint:CGPointMake(view.frame.origin.x , view.frame.origin.y + (view.frame.size.height))]; 373 | [path addLineToPoint:CGPointMake(view.frame.origin.x , view.frame.origin.y)]; 374 | [path addLineToPoint:CGPointMake(view.frame.origin.x + view.frame.size.width, view.frame.origin.y + view.frame.size.height)]; 375 | [path closePath]; 376 | CAShapeLayer *shapeLayer = [CAShapeLayer layer]; 377 | shapeLayer.path = path.CGPath; 378 | shapeLayer.strokeColor = [[UIColor blackColor] CGColor]; 379 | shapeLayer.fillColor = [((UIColor *)[self.array2[row] objectAtIndex:pixel]) CGColor]; 380 | shapeLayer.lineWidth = 0; 381 | [self.layer addSublayer:shapeLayer]; 382 | [self.ksublayers addObject:shapeLayer]; 383 | } 384 | 385 | 386 | - (UIImage *)convertToGreyscale:(UIImage *)i 387 | { 388 | int kRed = 1; 389 | int kGreen = 2; 390 | int kBlue = 4; 391 | 392 | int colors = kGreen | kBlue | kRed; 393 | int m_width = i.size.width; 394 | int m_height = i.size.height; 395 | 396 | uint32_t *rgbImage = (uint32_t *) malloc(m_width * m_height * sizeof(uint32_t)); 397 | CGColorSpaceRef colorSpace = CGColorSpaceCreateDeviceRGB(); 398 | CGContextRef context = CGBitmapContextCreate(rgbImage, m_width, m_height, 8, m_width * 4, colorSpace, kCGBitmapByteOrder32Little | kCGImageAlphaNoneSkipLast); 399 | CGContextSetInterpolationQuality(context, kCGInterpolationHigh); 400 | CGContextSetShouldAntialias(context, NO); 401 | CGContextDrawImage(context, CGRectMake(0, 0, m_width, m_height), [i CGImage]); 402 | CGContextRelease(context); 403 | CGColorSpaceRelease(colorSpace); 404 | 405 | // now convert to grayscale 406 | uint8_t *m_imageData = (uint8_t *)malloc(m_width * m_height); 407 | 408 | for(int y = 0; y < m_height; y++) 409 | { 410 | for(int x = 0; x < m_width; x++) 411 | { 412 | uint32_t rgbPixel = rgbImage[y * m_width + x]; 413 | uint32_t sum = 0; 414 | uint32_t count = 0; 415 | 416 | if(colors & kRed) 417 | { 418 | sum += (rgbPixel >> 24) & 255; 419 | count++; 420 | } 421 | 422 | if(colors & kGreen) 423 | { 424 | sum += (rgbPixel>>16)&255; 425 | count++; 426 | } 427 | 428 | if(colors & kBlue) 429 | { 430 | sum += (rgbPixel >> 8) & 255; 431 | count++; 432 | } 433 | 434 | m_imageData[y * m_width + x] = sum / count; 435 | } 436 | } 437 | 438 | free(rgbImage); 439 | 440 | // convert from a gray scale image back into a UIImage 441 | uint8_t *result = (uint8_t *)calloc(m_width * m_height * sizeof(uint32_t), 1); 442 | 443 | // process the image back to rgb 444 | for(int i = 0; i < m_height * m_width; i++) 445 | { 446 | result[i * 4] = 0; 447 | int val = m_imageData[i]; 448 | result[i * 4 + 1] = val; 449 | result[i * 4 + 2] = val; 450 | result[i * 4 + 3] = val; 451 | } 452 | 453 | // create a UIImage 454 | colorSpace = CGColorSpaceCreateDeviceRGB(); 455 | 456 | context = CGBitmapContextCreate(result, 457 | m_width, 458 | m_height, 459 | 8, 460 | m_width * sizeof(uint32_t), 461 | colorSpace, 462 | kCGBitmapByteOrder32Little | kCGImageAlphaNoneSkipLast); 463 | 464 | CGImageRef image = CGBitmapContextCreateImage(context); 465 | CGContextRelease(context); 466 | CGColorSpaceRelease(colorSpace); 467 | UIImage *resultUIImage = [UIImage imageWithCGImage:image]; 468 | CGImageRelease(image); 469 | 470 | free(m_imageData); 471 | 472 | // make sure the data will be released by giving it to an autoreleased NSData 473 | [NSData dataWithBytesNoCopy:result 474 | length:m_width * m_height]; 475 | 476 | return resultUIImage; 477 | } 478 | 479 | @end 480 | -------------------------------------------------------------------------------- /FFAngularPointilism/FFDoubleTriangleViewEffect.h: -------------------------------------------------------------------------------- 1 | // 2 | // FFDoubleTriangleViewEffect.h 3 | // TriangularPointilism 4 | // 5 | // Created by Igor Matyushkin on 26.11.14. 6 | // Copyright (c) 2014 FindandForm. All rights reserved. 7 | // 8 | 9 | #ifndef TriangularPointilism_FFDoubleTriangleViewEffect_h 10 | #define TriangularPointilism_FFDoubleTriangleViewEffect_h 11 | 12 | typedef enum 13 | { 14 | FFDoubleTriangleViewEffectNone, 15 | FFDoubleTriangleViewEffectBlackAndWhite, 16 | FFDoubleTriangleViewEffectMosaicFilter 17 | } FFDoubleTriangleViewEffect; 18 | 19 | #endif 20 | -------------------------------------------------------------------------------- /FFAngularPointilism/FFShutteringView.h: -------------------------------------------------------------------------------- 1 | // 2 | // FFShutteringView.h 3 | // TriangularPointilism 4 | // 5 | // Created by James Graham on 8/29/14. 6 | // Copyright (c) 2014 FindandForm. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface FFShutteringView : UIView 12 | /** 13 | * Start the automata 14 | */ 15 | - (void)sparkLife; 16 | 17 | /** 18 | * 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. 19 | * Default is 100 20 | */ 21 | @property (nonatomic) NSInteger topBottomMarginMaskLength; 22 | 23 | /** 24 | * The number of frames that will be called each second. 25 | * Default is 30 FPS. 26 | */ 27 | @property (nonatomic) CGFloat frameRate; 28 | 29 | /** 30 | * The amount of time until the class automatically halts the life of each triangular cell. For infinite life, set to 0. 31 | * Default is 0; 32 | */ 33 | @property (nonatomic) NSTimeInterval artificialLifeSpan; 34 | /** 35 | * 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. 36 | * Default is 200 37 | */ 38 | @property (nonatomic) NSUInteger maximumAllowedDeathTicks; 39 | 40 | @property (strong, nonatomic) NSArray *coordinateSquaresToOmit; 41 | 42 | @end 43 | 44 | 45 | @interface FFShutteringViewRow : NSObject 46 | 47 | @property (strong, nonatomic, readonly) NSMutableArray *items; 48 | 49 | - (instancetype)initWithItems:(NSArray *)items; 50 | 51 | @end 52 | 53 | 54 | @interface FFShutteringViewRowItem : NSObject 55 | 56 | @property (strong, nonatomic, readonly) UIImageView *imageViewTop; 57 | 58 | @property (strong, nonatomic, readonly) UIImageView *imageViewBottom; 59 | 60 | - (instancetype)initWithImageViewTop:(UIImageView *)imageViewTop imageViewBottom:(UIImageView *)imageViewBottom; 61 | 62 | - (NSArray *)imageViews; 63 | 64 | @end 65 | 66 | -------------------------------------------------------------------------------- /FFAngularPointilism/FFShutteringView.m: -------------------------------------------------------------------------------- 1 | // 2 | // FFShutteringView.m 3 | // TriangularPointilism 4 | // 5 | // Created by James Graham on 8/29/14. 6 | // Copyright (c) 2014 FindandForm. All rights reserved. 7 | // 8 | 9 | #import "FFShutteringView.h" 10 | @interface FFShutteringView() 11 | @property (strong, nonatomic) NSArray *images; 12 | @property (strong, nonatomic) NSMutableArray *onScreenImageViews; 13 | @property (nonatomic) BOOL shouldInvalidateTimer; 14 | 15 | @end 16 | @implementation FFShutteringView{ 17 | int width; 18 | } 19 | 20 | - (NSMutableArray *)onScreenImageViews{ 21 | if (!_onScreenImageViews) { 22 | _onScreenImageViews = [NSMutableArray array]; 23 | } 24 | return _onScreenImageViews; 25 | } 26 | 27 | - (NSInteger)topBottomMarginMaskLength{ 28 | if (_topBottomMarginMaskLength == 0) { 29 | _topBottomMarginMaskLength = 100; 30 | } 31 | return _topBottomMarginMaskLength; 32 | } 33 | 34 | @synthesize frameRate = _frameRate; 35 | - (CGFloat)frameRate{ 36 | if (_frameRate == 0) { 37 | _frameRate = 30.0f; 38 | } 39 | return _frameRate; 40 | } 41 | 42 | - (void)setFrameRate:(CGFloat)frameRate{ 43 | _frameRate = frameRate; 44 | self.shouldInvalidateTimer = YES; 45 | [self sparkLife]; 46 | } 47 | 48 | - (NSTimeInterval)artificialLifeSpan{ 49 | return _artificialLifeSpan; 50 | } 51 | 52 | - (NSUInteger)maximumAllowedDeathTicks{ 53 | if (_maximumAllowedDeathTicks == 0) { 54 | _maximumAllowedDeathTicks = 200; 55 | } 56 | return _maximumAllowedDeathTicks; 57 | } 58 | 59 | - (NSArray *)images{ 60 | if (_images) { 61 | _images = @[[UIImage imageNamed:@"topRight"], 62 | [UIImage imageNamed:@"topLeft"], 63 | [UIImage imageNamed:@"bottomRight"], 64 | [UIImage imageNamed:@"bottomLeft"]]; 65 | } 66 | return _images; 67 | } 68 | 69 | - (instancetype)initWithFrame:(CGRect)frame{ 70 | if (self = [super initWithFrame:frame]) { 71 | [self customInitialization]; 72 | } 73 | return self; 74 | } 75 | - (void)awakeFromNib{ 76 | [self customInitialization]; 77 | } 78 | 79 | 80 | - (void)customInitialization{ 81 | width = 32; 82 | NSArray *grayscales = @[@0.3, @0.15, @0.6, @0.45, @0.75, @0.0]; 83 | for (int i = 0; i <= self.bounds.size.width; i += width) { 84 | for (int j = 0; j <= self.bounds.size.height; j+=width) { 85 | if (j > self.topBottomMarginMaskLength && j < self.bounds.size.height - self.topBottomMarginMaskLength) { 86 | continue; 87 | } 88 | 89 | UIImageView *topLeft = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"topLeft"]]; 90 | UIImageView *topRight = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"topRight"]]; 91 | UIImageView *bottomLeft = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"bottomLeft"]]; 92 | UIImageView *bottomRight = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"bottomRight"]]; 93 | 94 | UIImageView *topLeft2 = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"topLeft"]]; 95 | UIImageView *topRight2 = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"topRight"]]; 96 | UIImageView *bottomLeft2 = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"bottomLeft"]]; 97 | UIImageView *bottomRight2 = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"bottomRight"]]; 98 | 99 | 100 | 101 | bottomRight.frame = CGRectMake(i, j, topLeft.frame.size.width, topLeft.frame.size.height); 102 | topLeft2.frame = bottomRight.frame; 103 | bottomLeft.frame = CGRectMake(i + topLeft.frame.size.width, j, topRight.frame.size.width, topRight.frame.size.height); 104 | topRight2.frame = bottomLeft.frame; 105 | 106 | topRight.frame = CGRectMake(i, j + topLeft.frame.size.height, bottomLeft.frame.size.width, bottomLeft.frame.size.height); 107 | bottomLeft2.frame = topRight.frame; 108 | topLeft.frame = CGRectMake(i + bottomLeft.frame.size.width, j + topLeft.frame.size.height, bottomRight.frame.size.width, bottomRight.frame.size.height); 109 | bottomRight2.frame = topLeft.frame; 110 | topLeft.alpha = [grayscales[arc4random() % grayscales.count] floatValue]; 111 | topLeft2.alpha = [grayscales[arc4random() % grayscales.count] floatValue]; 112 | topRight.alpha = [grayscales[arc4random() % grayscales.count] floatValue]; 113 | topRight2.alpha = [grayscales[arc4random() % grayscales.count] floatValue]; 114 | bottomLeft.alpha = [grayscales[arc4random() % grayscales.count] floatValue]; 115 | bottomLeft2.alpha = [grayscales[arc4random() % grayscales.count] floatValue]; 116 | bottomRight.alpha = [grayscales[arc4random() % grayscales.count] floatValue]; 117 | bottomRight2.alpha =[grayscales[arc4random() % grayscales.count] floatValue]; 118 | 119 | NSMutableArray *subMutArray = [NSMutableArray array]; 120 | //one box 121 | [self addSubview:topLeft]; 122 | [self addSubview:bottomRight2]; 123 | 124 | //two box 125 | [self addSubview:bottomRight]; 126 | [self addSubview:topLeft2]; 127 | 128 | //three box 129 | [self addSubview:topRight]; 130 | [self addSubview:bottomLeft2]; 131 | 132 | //four 133 | [self addSubview:bottomLeft]; 134 | [self addSubview:topRight2]; 135 | 136 | FFShutteringViewRow *row = [[FFShutteringViewRow alloc] initWithItems:@[ 137 | [[FFShutteringViewRowItem alloc] initWithImageViewTop:topLeft 138 | imageViewBottom:bottomRight2], 139 | [[FFShutteringViewRowItem alloc] initWithImageViewTop:bottomRight 140 | imageViewBottom:topLeft2], 141 | [[FFShutteringViewRowItem alloc] initWithImageViewTop:topRight 142 | imageViewBottom:bottomLeft2], 143 | [[FFShutteringViewRowItem alloc] initWithImageViewTop:bottomLeft 144 | imageViewBottom:topRight2] 145 | ]]; 146 | 147 | [self.onScreenImageViews addObject:row]; 148 | } 149 | } 150 | 151 | } 152 | 153 | - (void)fire:(NSTimer *)timer 154 | { 155 | if (self.shouldInvalidateTimer) 156 | { 157 | [timer invalidate]; 158 | 159 | self.shouldInvalidateTimer = NO; 160 | } 161 | 162 | for(FFShutteringViewRow *row in self.onScreenImageViews) 163 | { 164 | for(FFShutteringViewRowItem *item in row.items) 165 | { 166 | for(UIImageView *imageView in item.imageViews) 167 | { 168 | if(imageView.tag > 1 ) 169 | { 170 | imageView.tag--; 171 | } 172 | 173 | if((imageView.tag == 1) 174 | || (imageView.tag == 0)) 175 | { 176 | imageView.alpha += imageView.tag == 0 ? - 0.01f : 0.01f; 177 | } 178 | 179 | if(imageView.alpha >= 0.8f) 180 | { 181 | imageView.tag = 0; 182 | } 183 | 184 | if(imageView.alpha <= 0.0f) 185 | { 186 | //defines maximum possible amount of time a triangle may be dead (alpha 0) before coming back to life 187 | 188 | u_int32_t intRandom = arc4random(); 189 | 190 | 191 | if((imageView.frame.origin.y > self.topBottomMarginMaskLength / 2.0f) 192 | && (imageView.frame.origin.y < self.frame.size.height - self.topBottomMarginMaskLength/2.0f)) 193 | { 194 | //Hard coded layering. Middle halves closer to center experience 5x longer death than their further half counterparts 195 | 196 | imageView.tag = (intRandom % (self.maximumAllowedDeathTicks * 5)) + 1; 197 | } 198 | else 199 | { 200 | imageView.tag = (intRandom % self.maximumAllowedDeathTicks) + 1; 201 | } 202 | } 203 | } 204 | } 205 | } 206 | } 207 | 208 | - (void)sparkLife{ 209 | NSTimer *timer = [NSTimer timerWithTimeInterval:1.0f/self.frameRate target:self selector:@selector(fire:) userInfo:nil repeats:YES]; 210 | [[NSRunLoop currentRunLoop] addTimer:timer forMode:NSDefaultRunLoopMode]; 211 | [self invalidateTimerAfterNumberOfSeconds:self.artificialLifeSpan]; 212 | 213 | if (self.coordinateSquaresToOmit.count) { 214 | for (NSArray *coordinate in self.coordinateSquaresToOmit) { 215 | CGFloat xCoord = [((NSNumber *)[coordinate firstObject]) unsignedIntegerValue] * width + width/4.0; 216 | CGFloat yCoord = [((NSNumber *)[coordinate lastObject]) unsignedIntegerValue] * width + width/2.0; 217 | NSLog(@"%f, %f", xCoord, yCoord); 218 | 219 | UIView *underneathSubview = [self hitTest:[self convertPoint:CGPointMake(xCoord, yCoord) fromView:self.superview] withEvent:nil]; 220 | if (underneathSubview != self) { 221 | underneathSubview.hidden = YES; 222 | 223 | } 224 | 225 | xCoord += width/2.0; 226 | //underneathSubview.hidden = YES; 227 | 228 | 229 | } 230 | } 231 | } 232 | - (void)invalidateTimerAfterNumberOfSeconds:(NSTimeInterval)seconds{ 233 | if (seconds == 0) { 234 | return; 235 | } 236 | dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(seconds * NSEC_PER_SEC)), dispatch_get_main_queue(), ^{ 237 | self.shouldInvalidateTimer = YES; 238 | }); 239 | } 240 | @end 241 | 242 | 243 | @interface FFShutteringViewRow () 244 | 245 | @end 246 | 247 | @implementation FFShutteringViewRow 248 | 249 | - (instancetype)init 250 | { 251 | self = [super init]; 252 | 253 | if(self) 254 | { 255 | _items = [NSMutableArray array]; 256 | } 257 | 258 | return self; 259 | } 260 | 261 | - (instancetype)initWithItems:(NSArray *)items 262 | { 263 | self = [self init]; 264 | 265 | if(self) 266 | { 267 | [_items addObjectsFromArray:items]; 268 | } 269 | 270 | return self; 271 | } 272 | 273 | @end 274 | 275 | 276 | @interface FFShutteringViewRowItem () 277 | 278 | @end 279 | 280 | @implementation FFShutteringViewRowItem 281 | 282 | - (instancetype)initWithImageViewTop:(UIImageView *)imageViewTop imageViewBottom:(UIImageView *)imageViewBottom 283 | { 284 | self = [super init]; 285 | 286 | if(self) 287 | { 288 | _imageViewTop = imageViewTop; 289 | _imageViewBottom = imageViewBottom; 290 | } 291 | 292 | return self; 293 | } 294 | 295 | - (NSArray *)imageViews 296 | { 297 | NSMutableArray *arrayOfImageViews = [NSMutableArray array]; 298 | 299 | if(_imageViewTop) 300 | { 301 | [arrayOfImageViews addObject:_imageViewTop]; 302 | } 303 | 304 | if(_imageViewBottom) 305 | { 306 | [arrayOfImageViews addObject:_imageViewBottom]; 307 | } 308 | 309 | return arrayOfImageViews; 310 | } 311 | 312 | @end 313 | 314 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | The MIT License (MIT) 2 | 3 | Copyright (c) 2014 Find & Form 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | Angular Pointilism 2 | ========== 3 | _Triangles for iOS!_ 4 | 5 | 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. 6 | 7 | You may dive right in with the included [demo](https://github.com/FindForm/FFAngularPointilism/archive/master.zip); simply open the .xcodeproj and run on a 4" display 8 | 9 | ### Feature set is twofold 10 | 11 | #####1. Animatable iOS mosaic-like image filter ##### 12 | 13 | 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) 14 | 15 | ![animatedGif] 16 | (https://s3.amazonaws.com/Find-and-Form/portolio/TriangularPoint.gif) 17 | 18 | ###Output the filtered image### 19 | 20 | ![static] 21 | (http://i.imgur.com/RVNZYe6.png) 22 | 23 |
24 | ##### 2. Animatable Shuttering & Undulation 25 | ![mov](https://s3.amazonaws.com/Find-and-Form/animatedangular-1.gif) 26 | 27 | This shuttering effect is best described within the context of cellular automata. 28 | The following properties are available via public API (from FFShutteringView.h): 29 | ```objc 30 | /** 31 | * 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. 32 | * Default is 100 33 | */ 34 | @property (nonatomic) NSInteger topBottomMarginMaskLength; 35 | 36 | /** 37 | * The number of frames that will be called each second. 38 | * Default is 30 FPS. 39 | */ 40 | @property (nonatomic) CGFloat frameRate; 41 | 42 | /** 43 | * The amount of time until the class automatically halts the life of each triangular cell. For infinite life, set to 0. 44 | * Default is 0; 45 | */ 46 | @property (nonatomic) NSTimeInterval artificialLifeSpan; 47 | /** 48 | * 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. 49 | * Default is 200 50 | */ 51 | @property (nonatomic) NSUInteger maximumAllowedDeathTicks; 52 | ``` 53 | 54 | 55 | 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. 56 | 57 | ### Contributing 58 | All contributions welcome! I have no agenda as to where this project must go, what direction it is to take; make it your own! 59 | --------------------------------------------------------------------------------