Permalink
Browse files

Create gh-pages branch via GitHub

  • Loading branch information...
0 parents commit a11bd8b627f4ebd37609df4ab74a04a1473d0b52 @thisandagain committed Jul 10, 2012
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@@ -0,0 +1,112 @@
+<!DOCTYPE html>
+<html>
+
+ <head>
+ <meta charset='utf-8' />
+ <meta http-equiv="X-UA-Compatible" content="chrome=1" />
+ <meta name="description" content="Parallax : Objective-C library for implementation of CoreMotion-controlled parallax distortion." />
+
+ <link rel="stylesheet" type="text/css" media="screen" href="stylesheets/stylesheet.css">
+
+ <title>Parallax</title>
+ </head>
+
+ <body>
+
+ <!-- HEADER -->
+ <div id="header_wrap" class="outer">
+ <header class="inner">
+ <a id="forkme_banner" href="https://github.com/thisandagain/parallax">View on GitHub</a>
+
+ <h1 id="project_title">Parallax</h1>
+ <h2 id="project_tagline">Objective-C library for implementation of CoreMotion-controlled parallax distortion.</h2>
+
+ <section id="downloads">
+ <a class="zip_download_link" href="https://github.com/thisandagain/parallax/zipball/master">Download this project as a .zip file</a>
+ <a class="tar_download_link" href="https://github.com/thisandagain/parallax/tarball/master">Download this project as a tar.gz file</a>
+ </section>
+ </header>
+ </div>
+
+ <!-- MAIN CONTENT -->
+ <div id="main_content_wrap" class="outer">
+ <section id="main_content" class="inner">
+ <h3>Objective-C library for simple implementation of CoreMotion-controlled parallax distortion.</h3>
+
+<h2>Installation</h2>
+
+<ul>
+<li>Copy DIYParallax.h and DIYParallax.m into your project</li>
+<li>Add the "CoreMotion" framework to your project</li>
+</ul><h2>Getting Started</h2>
+
+<div class="highlight">
+<pre><span class="k">-</span> <span class="p">(</span><span class="kt">void</span><span class="p">)</span><span class="nf">viewDidLoad</span>
+<span class="p">{</span>
+ <span class="p">[</span><span class="n">super</span> <span class="n">viewDidLoad</span><span class="p">];</span>
+
+ <span class="c1">//</span>
+
+ <span class="n">parallax</span> <span class="o">=</span> <span class="p">[[</span><span class="n">DIYParallax</span> <span class="n">alloc</span><span class="p">]</span> <span class="nl">initWithFrame:</span><span class="n">self</span><span class="p">.</span><span class="n">view</span><span class="p">.</span><span class="n">frame</span><span class="p">];</span>
+
+ <span class="p">[</span><span class="n">parallax</span> <span class="nl">addLayer:</span><span class="mf">0.0</span> <span class="nl">imageNamed:</span><span class="s">@"layer_1@2x.png"</span> <span class="nl">frame:</span><span class="n">CGRectMake</span><span class="p">(</span><span class="mi">0</span><span class="p">,</span> <span class="mi">0</span><span class="p">,</span> <span class="mi">480</span><span class="p">,</span> <span class="mi">320</span><span class="p">)];</span>
+ <span class="p">[</span><span class="n">parallax</span> <span class="nl">addLayer:</span><span class="mf">0.1</span> <span class="nl">imageNamed:</span><span class="s">@"layer_2@2x.png"</span> <span class="nl">frame:</span><span class="n">CGRectMake</span><span class="p">(</span><span class="mi">240</span><span class="p">,</span> <span class="mi">0</span><span class="p">,</span> <span class="mi">240</span><span class="p">,</span> <span class="mi">320</span><span class="p">)];</span>
+ <span class="p">[</span><span class="n">parallax</span> <span class="nl">addLayer:</span><span class="mf">0.2</span> <span class="nl">imageNamed:</span><span class="s">@"layer_3@2x.png"</span> <span class="nl">frame:</span><span class="n">CGRectMake</span><span class="p">(</span><span class="mi">240</span><span class="p">,</span> <span class="mi">160</span><span class="p">,</span> <span class="mi">240</span><span class="p">,</span> <span class="mi">160</span><span class="p">)];</span>
+ <span class="p">[</span><span class="n">parallax</span> <span class="nl">addLayer:</span><span class="mf">0.3</span> <span class="nl">imageNamed:</span><span class="s">@"layer_4@2x.png"</span> <span class="nl">frame:</span><span class="n">CGRectMake</span><span class="p">(</span><span class="mi">120</span><span class="p">,</span> <span class="mi">160</span><span class="p">,</span> <span class="mi">120</span><span class="p">,</span> <span class="mi">160</span><span class="p">)];</span>
+ <span class="p">[</span><span class="n">parallax</span> <span class="nl">addLayer:</span><span class="mf">0.8</span> <span class="nl">imageNamed:</span><span class="s">@"layer_5@2x.png"</span> <span class="nl">frame:</span><span class="n">CGRectMake</span><span class="p">(</span><span class="mi">60</span><span class="p">,</span> <span class="mi">160</span><span class="p">,</span> <span class="mi">60</span><span class="p">,</span> <span class="mi">160</span><span class="p">)];</span>
+
+ <span class="p">[</span><span class="n">self</span><span class="p">.</span><span class="n">view</span> <span class="nl">addSubview:</span><span class="n">parallax</span><span class="p">];</span>
+<span class="p">}</span>
+
+<span class="k">-</span> <span class="p">(</span><span class="kt">void</span><span class="p">)</span><span class="nf">viewDidAppear:</span><span class="p">(</span><span class="kt">BOOL</span><span class="p">)</span><span class="nv">animated</span>
+<span class="p">{</span>
+ <span class="p">[</span><span class="n">super</span> <span class="nl">viewDidAppear:</span><span class="n">animated</span><span class="p">];</span>
+
+ <span class="p">[</span><span class="n">parallax</span> <span class="n">startListening</span><span class="p">];</span>
+<span class="p">}</span>
+
+<span class="k">-</span> <span class="p">(</span><span class="kt">void</span><span class="p">)</span><span class="nf">viewDidDisappear:</span><span class="p">(</span><span class="kt">BOOL</span><span class="p">)</span><span class="nv">animated</span>
+<span class="p">{</span>
+ <span class="p">[</span><span class="n">super</span> <span class="nl">viewDidDisappear:</span><span class="n">animated</span><span class="p">];</span>
+
+ <span class="p">[</span><span class="n">parallax</span> <span class="n">stopListening</span><span class="p">];</span>
+<span class="p">}</span>
+</pre>
+</div>
+
+
+<h2>Public Methods</h2>
+
+<pre><code>- (void)addLayer:(CGFloat)depth imageNamed:(NSString *)asset frame:(CGRect)frame;
+- (void)startListening;
+- (void)stopListening;
+</code></pre>
+
+<h2>Properties</h2>
+
+<p>DIYParallax is a subclass of UIView, thus all properties and methods inherent to UIView can be applied. For more information, please check the <a href="https://developer.apple.com/library/ios/#documentation/uikit/reference/uiview_class/uiview/uiview.html">UIView class reference</a>.</p>
+ </section>
+ </div>
+
+ <!-- FOOTER -->
+ <div id="footer_wrap" class="outer">
+ <footer class="inner">
+ <p class="copyright">Parallax maintained by <a href="https://github.com/thisandagain">thisandagain</a></p>
+ <p>Published with <a href="http://pages.github.com">GitHub Pages</a></p>
+ </footer>
+ </div>
+
+ <script type="text/javascript">
+ var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
+ document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
+ </script>
+ <script type="text/javascript">
+ try {
+ var pageTracker = _gat._getTracker("UA-33281153-1");
+ pageTracker._trackPageview();
+ } catch(err) {}
+ </script>
+
+
+ </body>
+</html>
@@ -0,0 +1 @@
+console.log('This would be the main JS file.');
@@ -0,0 +1 @@
+{"tagline":"Objective-C library for implementation of CoreMotion-controlled parallax distortion.","note":"Don't delete this file! It's used internally to help with page regeneration.","body":"### Objective-C library for simple implementation of CoreMotion-controlled parallax distortion.\r\n\r\n## Installation\r\n- Copy DIYParallax.h and DIYParallax.m into your project\r\n- Add the \"CoreMotion\" framework to your project\r\n\r\n## Getting Started\r\n```objective-c\r\n- (void)viewDidLoad\r\n{\r\n [super viewDidLoad];\r\n \r\n //\r\n \r\n parallax = [[DIYParallax alloc] initWithFrame:self.view.frame];\r\n\r\n [parallax addLayer:0.0 imageNamed:@\"layer_1@2x.png\" frame:CGRectMake(0, 0, 480, 320)];\r\n [parallax addLayer:0.1 imageNamed:@\"layer_2@2x.png\" frame:CGRectMake(240, 0, 240, 320)];\r\n [parallax addLayer:0.2 imageNamed:@\"layer_3@2x.png\" frame:CGRectMake(240, 160, 240, 160)];\r\n [parallax addLayer:0.3 imageNamed:@\"layer_4@2x.png\" frame:CGRectMake(120, 160, 120, 160)];\r\n [parallax addLayer:0.8 imageNamed:@\"layer_5@2x.png\" frame:CGRectMake(60, 160, 60, 160)];\r\n \r\n [self.view addSubview:parallax];\r\n}\r\n\r\n- (void)viewDidAppear:(BOOL)animated\r\n{\r\n [super viewDidAppear:animated];\r\n \r\n [parallax startListening];\r\n}\r\n\r\n- (void)viewDidDisappear:(BOOL)animated\r\n{\r\n [super viewDidDisappear:animated];\r\n \r\n [parallax stopListening];\r\n}\r\n````\r\n\r\n## Public Methods\r\n```\r\n- (void)addLayer:(CGFloat)depth imageNamed:(NSString *)asset frame:(CGRect)frame;\r\n- (void)startListening;\r\n- (void)stopListening;\r\n```\r\n\r\n## Properties\r\nDIYParallax is a subclass of UIView, thus all properties and methods inherent to UIView can be applied. For more information, please check the [UIView class reference](https://developer.apple.com/library/ios/#documentation/uikit/reference/uiview_class/uiview/uiview.html).","name":"Parallax","google":"UA-33281153-1"}
@@ -0,0 +1,70 @@
+.highlight .hll { background-color: #ffffcc }
+.highlight { background: #f0f3f3; }
+.highlight .c { color: #0099FF; font-style: italic } /* Comment */
+.highlight .err { color: #AA0000; background-color: #FFAAAA } /* Error */
+.highlight .k { color: #006699; font-weight: bold } /* Keyword */
+.highlight .o { color: #555555 } /* Operator */
+.highlight .cm { color: #0099FF; font-style: italic } /* Comment.Multiline */
+.highlight .cp { color: #009999 } /* Comment.Preproc */
+.highlight .c1 { color: #0099FF; font-style: italic } /* Comment.Single */
+.highlight .cs { color: #0099FF; font-weight: bold; font-style: italic } /* Comment.Special */
+.highlight .gd { background-color: #FFCCCC; border: 1px solid #CC0000 } /* Generic.Deleted */
+.highlight .ge { font-style: italic } /* Generic.Emph */
+.highlight .gr { color: #FF0000 } /* Generic.Error */
+.highlight .gh { color: #003300; font-weight: bold } /* Generic.Heading */
+.highlight .gi { background-color: #CCFFCC; border: 1px solid #00CC00 } /* Generic.Inserted */
+.highlight .go { color: #AAAAAA } /* Generic.Output */
+.highlight .gp { color: #000099; font-weight: bold } /* Generic.Prompt */
+.highlight .gs { font-weight: bold } /* Generic.Strong */
+.highlight .gu { color: #003300; font-weight: bold } /* Generic.Subheading */
+.highlight .gt { color: #99CC66 } /* Generic.Traceback */
+.highlight .kc { color: #006699; font-weight: bold } /* Keyword.Constant */
+.highlight .kd { color: #006699; font-weight: bold } /* Keyword.Declaration */
+.highlight .kn { color: #006699; font-weight: bold } /* Keyword.Namespace */
+.highlight .kp { color: #006699 } /* Keyword.Pseudo */
+.highlight .kr { color: #006699; font-weight: bold } /* Keyword.Reserved */
+.highlight .kt { color: #007788; font-weight: bold } /* Keyword.Type */
+.highlight .m { color: #FF6600 } /* Literal.Number */
+.highlight .s { color: #CC3300 } /* Literal.String */
+.highlight .na { color: #330099 } /* Name.Attribute */
+.highlight .nb { color: #336666 } /* Name.Builtin */
+.highlight .nc { color: #00AA88; font-weight: bold } /* Name.Class */
+.highlight .no { color: #336600 } /* Name.Constant */
+.highlight .nd { color: #9999FF } /* Name.Decorator */
+.highlight .ni { color: #999999; font-weight: bold } /* Name.Entity */
+.highlight .ne { color: #CC0000; font-weight: bold } /* Name.Exception */
+.highlight .nf { color: #CC00FF } /* Name.Function */
+.highlight .nl { color: #9999FF } /* Name.Label */
+.highlight .nn { color: #00CCFF; font-weight: bold } /* Name.Namespace */
+.highlight .nt { color: #330099; font-weight: bold } /* Name.Tag */
+.highlight .nv { color: #003333 } /* Name.Variable */
+.highlight .ow { color: #000000; font-weight: bold } /* Operator.Word */
+.highlight .w { color: #bbbbbb } /* Text.Whitespace */
+.highlight .mf { color: #FF6600 } /* Literal.Number.Float */
+.highlight .mh { color: #FF6600 } /* Literal.Number.Hex */
+.highlight .mi { color: #FF6600 } /* Literal.Number.Integer */
+.highlight .mo { color: #FF6600 } /* Literal.Number.Oct */
+.highlight .sb { color: #CC3300 } /* Literal.String.Backtick */
+.highlight .sc { color: #CC3300 } /* Literal.String.Char */
+.highlight .sd { color: #CC3300; font-style: italic } /* Literal.String.Doc */
+.highlight .s2 { color: #CC3300 } /* Literal.String.Double */
+.highlight .se { color: #CC3300; font-weight: bold } /* Literal.String.Escape */
+.highlight .sh { color: #CC3300 } /* Literal.String.Heredoc */
+.highlight .si { color: #AA0000 } /* Literal.String.Interpol */
+.highlight .sx { color: #CC3300 } /* Literal.String.Other */
+.highlight .sr { color: #33AAAA } /* Literal.String.Regex */
+.highlight .s1 { color: #CC3300 } /* Literal.String.Single */
+.highlight .ss { color: #FFCC33 } /* Literal.String.Symbol */
+.highlight .bp { color: #336666 } /* Name.Builtin.Pseudo */
+.highlight .vc { color: #003333 } /* Name.Variable.Class */
+.highlight .vg { color: #003333 } /* Name.Variable.Global */
+.highlight .vi { color: #003333 } /* Name.Variable.Instance */
+.highlight .il { color: #FF6600 } /* Literal.Number.Integer.Long */
+
+.type-csharp .highlight .k { color: #0000FF }
+.type-csharp .highlight .kt { color: #0000FF }
+.type-csharp .highlight .nf { color: #000000; font-weight: normal }
+.type-csharp .highlight .nc { color: #2B91AF }
+.type-csharp .highlight .nn { color: #000000 }
+.type-csharp .highlight .s { color: #A31515 }
+.type-csharp .highlight .sc { color: #A31515 }
Oops, something went wrong.

0 comments on commit a11bd8b

Please sign in to comment.