mirror of
https://github.com/dataarts/dat.gui.git
synced 2024-12-12 04:08:27 +00:00
readme
This commit is contained in:
parent
542517793f
commit
f21e50f041
@ -7,10 +7,7 @@ dat-gui creates an interface that you can use to modify variables with very litt
|
|||||||
Download the [minified library]( todo ) and include it in your html.
|
Download the [minified library]( todo ) and include it in your html.
|
||||||
|
|
||||||
```html
|
```html
|
||||||
|
<script src="gui.js"></script>
|
||||||
<script src="//cdnjs.cloudflare.com/ajax/libs/polymer/0.3.4/platform.js"></script>
|
|
||||||
<script src="//cdnjs.cloudflare.com/ajax/libs/dat-gui/r3/gui.js"></script>
|
|
||||||
|
|
||||||
```
|
```
|
||||||
|
|
||||||
Create controllers by adding objects and their properties. dat-gui chooses a controller based on the variable's initial value.
|
Create controllers by adding objects and their properties. dat-gui chooses a controller based on the variable's initial value.
|
||||||
|
@ -19,9 +19,7 @@
|
|||||||
<p>dat-gui creates an interface that you can use to modify variables with very little code. </p>
|
<p>dat-gui creates an interface that you can use to modify variables with very little code. </p>
|
||||||
<h3 id="basic-usage">Basic Usage</h3>
|
<h3 id="basic-usage">Basic Usage</h3>
|
||||||
<p>Download the <a href="todo">minified library</a> and include it in your html.</p>
|
<p>Download the <a href="todo">minified library</a> and include it in your html.</p>
|
||||||
<pre><code class="lang-html">
|
<pre><code class="lang-html"><script src="gui.js"></script>
|
||||||
<script src="//cdnjs.cloudflare.com/ajax/libs/polymer/0.3.4/platform.js"></script>
|
|
||||||
<script src="//cdnjs.cloudflare.com/ajax/libs/dat-gui/r3/gui.js"></script>
|
|
||||||
</code></pre>
|
</code></pre>
|
||||||
<p>Create controllers by adding objects and their properties. dat-gui chooses a controller based on the variable's initial value.</p>
|
<p>Create controllers by adding objects and their properties. dat-gui chooses a controller based on the variable's initial value.</p>
|
||||||
<pre><code class="lang-javascript">var gui = new Gui();
|
<pre><code class="lang-javascript">var gui = new Gui();
|
||||||
|
Loading…
Reference in New Issue
Block a user