Permalink
Browse files

update docs

  • Loading branch information...
1 parent 62eaea4 commit 8eeb549b0388e8c7eea061f20f066ffb0474f871 @gawel committed Oct 6, 2012
View
@@ -1,4 +1,4 @@
# Sphinx build info version 1
# This file hashes the configuration used when building these files. When it is not found, a full rebuild will be done.
-config: b262c5cca27475ed79ca001c69df4135
+config: 0fa223b40f429a6c7ee291b1edcf78d1
tags: fbb0d17656682115ca4d033fb2f83ba1

Large diffs are not rendered by default.

Oops, something went wrong.
@@ -0,0 +1,71 @@
+
+<!DOCTYPE html>
+<html>
+ <head>
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
+ <title>impress.funcs</title>
+ <meta name="viewport" content="width=1024" />
+ <meta name="apple-mobile-web-app-capable" content="yes" />
+ <link rel="stylesheet" href="../../static/nature.css" type="text/css" />
+ <link rel="stylesheet" href="../../static/pygments.css" type="text/css" />
+ <link rel="stylesheet" href="../../static/impress.css" type="text/css" />
+ <link rel="stylesheet" href="../../static/custom.css" type="text/css" />
+ </head>
+ <body>
+ <div id="impress">
+
+ <h1>Source code for impress.funcs</h1><div class="highlight"><pre>
+<span class="c"># -*- coding: utf-8 -*-</span>
+<span class="kn">import</span> <span class="nn">math</span>
+
+<span class="n">defaults</span> <span class="o">=</span> <span class="nb">dict</span><span class="p">(</span><span class="n">x</span><span class="o">=</span><span class="mi">0</span><span class="p">,</span> <span class="n">y</span><span class="o">=</span><span class="mi">0</span><span class="p">,</span> <span class="n">rotate_x</span><span class="o">=</span><span class="mi">0</span><span class="p">,</span> <span class="n">rotate_y</span><span class="o">=</span><span class="mi">0</span><span class="p">,</span> <span class="n">rotate_z</span><span class="o">=</span><span class="mi">0</span><span class="p">,</span> <span class="n">scale</span><span class="o">=</span><span class="mi">1</span><span class="p">)</span>
+
+
+<div class="viewcode-block" id="default"><a class="viewcode-back" href="../../index.html#impress.funcs.default">[docs]</a><span class="k">def</span> <span class="nf">default</span><span class="p">(</span><span class="n">directive</span><span class="p">,</span> <span class="n">i</span><span class="p">,</span> <span class="n">coord</span><span class="p">):</span>
+ <span class="k">if</span> <span class="n">coord</span><span class="p">:</span>
+ <span class="n">coord</span><span class="p">[</span><span class="s">&#39;x&#39;</span><span class="p">]</span> <span class="o">+=</span> <span class="mi">1000</span>
+ <span class="n">coord</span><span class="p">[</span><span class="s">&#39;y&#39;</span><span class="p">]</span> <span class="o">+=</span> <span class="mi">500</span>
+ <span class="n">coord</span><span class="p">[</span><span class="s">&#39;rotate_x&#39;</span><span class="p">]</span> <span class="o">+=</span> <span class="p">(</span><span class="mi">1000</span> <span class="o">/</span> <span class="mf">180.</span> <span class="o">*</span> <span class="n">math</span><span class="o">.</span><span class="n">pi</span><span class="p">)</span>
+ <span class="k">else</span><span class="p">:</span>
+ <span class="n">coord</span><span class="o">.</span><span class="n">update</span><span class="p">(</span><span class="n">defaults</span><span class="p">)</span>
+ <span class="k">return</span> <span class="n">coord</span>
+
+</div>
+<div class="viewcode-block" id="linear"><a class="viewcode-back" href="../../index.html#impress.funcs.linear">[docs]</a><span class="k">def</span> <span class="nf">linear</span><span class="p">(</span><span class="n">directive</span><span class="p">,</span> <span class="n">i</span><span class="p">,</span> <span class="n">coord</span><span class="p">):</span>
+ <span class="k">if</span> <span class="n">coord</span><span class="p">:</span>
+ <span class="n">coord</span><span class="p">[</span><span class="s">&#39;x&#39;</span><span class="p">]</span> <span class="o">+=</span> <span class="mi">1000</span>
+ <span class="k">else</span><span class="p">:</span>
+ <span class="n">coord</span><span class="o">.</span><span class="n">update</span><span class="p">(</span><span class="n">defaults</span><span class="p">)</span>
+ <span class="k">return</span> <span class="n">coord</span>
+
+</div>
+<div class="viewcode-block" id="spiral"><a class="viewcode-back" href="../../index.html#impress.funcs.spiral">[docs]</a><span class="k">def</span> <span class="nf">spiral</span><span class="p">(</span><span class="n">directive</span><span class="p">,</span> <span class="n">i</span><span class="p">,</span> <span class="n">coord</span><span class="p">):</span>
+ <span class="k">if</span> <span class="n">coord</span><span class="p">:</span>
+ <span class="n">r</span> <span class="o">=</span> <span class="mi">1200</span>
+ <span class="k">if</span> <span class="n">coord</span><span class="p">[</span><span class="s">&#39;x&#39;</span><span class="p">]</span> <span class="o">&gt;</span> <span class="mi">0</span><span class="p">:</span>
+ <span class="n">incr</span> <span class="o">=</span> <span class="mi">100</span> <span class="o">*</span> <span class="n">i</span> <span class="o">/</span> <span class="mf">3.</span>
+ <span class="k">else</span><span class="p">:</span>
+ <span class="n">incr</span> <span class="o">=</span> <span class="o">-</span><span class="mi">100</span> <span class="o">*</span> <span class="n">i</span> <span class="o">/</span> <span class="mf">3.</span>
+ <span class="n">coord</span><span class="p">[</span><span class="s">&#39;x&#39;</span><span class="p">]</span> <span class="o">=</span> <span class="n">math</span><span class="o">.</span><span class="n">cos</span><span class="p">(</span><span class="n">i</span><span class="p">)</span> <span class="o">*</span> <span class="n">r</span>
+ <span class="n">coord</span><span class="p">[</span><span class="s">&#39;y&#39;</span><span class="p">]</span> <span class="o">=</span> <span class="n">math</span><span class="o">.</span><span class="n">sin</span><span class="p">(</span><span class="n">i</span><span class="p">)</span> <span class="o">*</span> <span class="n">r</span>
+ <span class="n">coord</span><span class="p">[</span><span class="s">&#39;z&#39;</span><span class="p">]</span> <span class="o">=</span> <span class="n">math</span><span class="o">.</span><span class="n">log</span><span class="p">(</span><span class="n">i</span><span class="p">)</span> <span class="o">*</span> <span class="n">r</span>
+ <span class="n">coord</span><span class="p">[</span><span class="s">&#39;rotate_x&#39;</span><span class="p">]</span> <span class="o">+=</span> <span class="p">((</span><span class="n">r</span> <span class="o">+</span> <span class="n">incr</span><span class="p">)</span> <span class="o">/</span> <span class="mf">180.</span> <span class="o">*</span> <span class="n">math</span><span class="o">.</span><span class="n">pi</span><span class="p">)</span>
+ <span class="n">coord</span><span class="p">[</span><span class="s">&#39;rotate_y&#39;</span><span class="p">]</span> <span class="o">+=</span> <span class="p">((</span><span class="n">r</span> <span class="o">+</span> <span class="n">incr</span><span class="p">)</span> <span class="o">/</span> <span class="mf">180.</span> <span class="o">*</span> <span class="n">math</span><span class="o">.</span><span class="n">pi</span><span class="p">)</span>
+ <span class="n">coord</span><span class="p">[</span><span class="s">&#39;rotate_y&#39;</span><span class="p">]</span> <span class="o">+=</span> <span class="p">((</span><span class="n">r</span> <span class="o">+</span> <span class="n">incr</span><span class="p">)</span> <span class="o">/</span> <span class="mf">180.</span> <span class="o">*</span> <span class="n">math</span><span class="o">.</span><span class="n">pi</span><span class="p">)</span>
+ <span class="k">else</span><span class="p">:</span>
+ <span class="n">coord</span> <span class="o">=</span> <span class="n">defaults</span><span class="o">.</span><span class="n">copy</span><span class="p">()</span>
+ <span class="k">return</span> <span class="n">coord</span></div>
+</pre></div>
+
+ </div>
+ <script src="../../static/impress/js/impress.js"></script>
+ <script src="../../static/jquery.js"></script>
+ <script src="../../static/impress.js"></script>
+ <script src="../../static/custom.js"></script>
+ <script>
+ if (! /_modules/.exec(window.location.href)) {
+ impress().init();
+ }
+ </script>
+ </body>
+</html>
View
@@ -0,0 +1,33 @@
+
+<!DOCTYPE html>
+<html>
+ <head>
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
+ <title>Overview: module code</title>
+ <meta name="viewport" content="width=1024" />
+ <meta name="apple-mobile-web-app-capable" content="yes" />
+ <link rel="stylesheet" href="../static/nature.css" type="text/css" />
+ <link rel="stylesheet" href="../static/pygments.css" type="text/css" />
+ <link rel="stylesheet" href="../static/impress.css" type="text/css" />
+ <link rel="stylesheet" href="../static/custom.css" type="text/css" />
+ </head>
+ <body>
+ <div id="impress">
+
+ <h1>All modules for which code is available</h1>
+<ul><li><a href="impress/directives.html">impress.directives</a></li>
+<li><a href="impress/funcs.html">impress.funcs</a></li>
+</ul>
+
+ </div>
+ <script src="../static/impress/js/impress.js"></script>
+ <script src="../static/jquery.js"></script>
+ <script src="../static/impress.js"></script>
+ <script src="../static/custom.js"></script>
+ <script>
+ if (! /_modules/.exec(window.location.href)) {
+ impress().init();
+ }
+ </script>
+ </body>
+</html>
View
Binary file not shown.
View
Binary file not shown.
View
Binary file not shown.
View
@@ -8,10 +8,10 @@
<title>Index</title>
<meta name="viewport" content="width=1024" />
<meta name="apple-mobile-web-app-capable" content="yes" />
- <link rel="stylesheet" href="static/impress/impress/css/impress-demo.css" type="text/css" />
<link rel="stylesheet" href="static/nature.css" type="text/css" />
- <link rel="stylesheet" href="static/impress.css" type="text/css" />
<link rel="stylesheet" href="static/pygments.css" type="text/css" />
+ <link rel="stylesheet" href="static/impress.css" type="text/css" />
+ <link rel="stylesheet" href="static/custom.css" type="text/css" />
</head>
<body>
<div id="impress">
@@ -20,9 +20,31 @@
<h1 id="index">Index</h1>
<div class="genindex-jumpbox">
- <a href="#S"><strong>S</strong></a>
+ <a href="#D"><strong>D</strong></a>
+ | <a href="#L"><strong>L</strong></a>
+ | <a href="#S"><strong>S</strong></a>
</div>
+<h2 id="D">D</h2>
+<table style="width: 100%" class="indextable genindextable"><tr>
+ <td style="width: 33%" valign="top"><dl>
+
+ <dt><a href="index.html#impress.funcs.default">default() (in module impress.funcs)</a>
+ </dt>
+
+ </dl></td>
+</tr></table>
+
+<h2 id="L">L</h2>
+<table style="width: 100%" class="indextable genindextable"><tr>
+ <td style="width: 33%" valign="top"><dl>
+
+ <dt><a href="index.html#impress.funcs.linear">linear() (in module impress.funcs)</a>
+ </dt>
+
+ </dl></td>
+</tr></table>
+
<h2 id="S">S</h2>
<table style="width: 100%" class="indextable genindextable"><tr>
<td style="width: 33%" valign="top"><dl>
@@ -31,13 +53,21 @@ <h2 id="S">S</h2>
</dt>
</dl></td>
+ <td style="width: 33%" valign="top"><dl>
+
+ <dt><a href="index.html#impress.funcs.spiral">spiral() (in module impress.funcs)</a>
+ </dt>
+
+ </dl></td>
</tr></table>
</div>
- <script src="static/impress/impress/js/impress.js"></script>
+ <script src="static/impress/js/impress.js"></script>
<script src="static/jquery.js"></script>
+ <script src="static/impress.js"></script>
+ <script src="static/custom.js"></script>
<script>
if (! /_modules/.exec(window.location.href)) {
impress().init();
Oops, something went wrong.

0 comments on commit 8eeb549

Please sign in to comment.