Skip to content

Commit

Permalink
builds
Browse files Browse the repository at this point in the history
  • Loading branch information
matiasvlevi committed May 3, 2024
1 parent 9d7a267 commit bbe8aca
Show file tree
Hide file tree
Showing 11 changed files with 32 additions and 11 deletions.
2 changes: 1 addition & 1 deletion docs/assets/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/assets/style.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions docs/events.html
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ <h1 class="module">events</h1>
<button class="menuBtn" onclick="toggleMenu()">
<img class="menuIcon" width="40px" src="./assets/arrow_left.svg"/>
</button>

<span class="version">v0.0.2</span>
</header>


Expand Down
4 changes: 3 additions & 1 deletion docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,11 @@ <h1 class="module">Reference</h1>
<button class="menuBtn" onclick="toggleMenu()">
<img class="menuIcon" width="40px" src="./assets/arrow_left.svg"/>
</button>

<span class="version">v0.0.2</span>
</header>

<h3>Modules</h3><div class="modules"><div><h3>window</h3><ul><li class="index"><a class="dark index" href="./window.html#createWindow">createWindow</a></li><li class="index"><a class="dark index" href="./window.html#background">background</a></li></ul></div><div><h3>events</h3><ul><li class="index"><a class="dark index" href="./events.html#isKeyDown">isKeyDown</a></li></ul></div><div><h3>lu5_math</h3><ul><li class="index"><a class="dark index" href="./lu5_math.html#round">round</a></li></ul></div><div><h3>setting</h3><ul><li class="index"><a class="dark index" href="./setting.html#fill">fill</a></li><li class="index"><a class="dark index" href="./setting.html#strokeWeight">strokeWeight</a></li><li class="index"><a class="dark index" href="./setting.html#noFill">noFill</a></li><li class="index"><a class="dark index" href="./setting.html#stroke">stroke</a></li><li class="index"><a class="dark index" href="./setting.html#noStroke">noStroke</a></li><li class="index"><a class="dark index" href="./setting.html#textSize">textSize</a></li></ul></div><div><h3>io</h3><ul><li class="index"><a class="dark index" href="./io.html#print">print</a></li></ul></div><div><h3>shapes</h3><ul><li class="index"><a class="dark index" href="./shapes.html#circle">circle</a></li><li class="index"><a class="dark index" href="./shapes.html#rect">rect</a></li><li class="index"><a class="dark index" href="./shapes.html#square">square</a></li><li class="index"><a class="dark index" href="./shapes.html#line">line</a></li><li class="index"><a class="dark index" href="./shapes.html#quad">quad</a></li><li class="index"><a class="dark index" href="./shapes.html#text">text</a></li><li class="index"><a class="dark index" href="./shapes.html#point">point</a></li><li class="index"><a class="dark index" href="./shapes.html#arc">arc</a></li><li class="index"><a class="dark index" href="./shapes.html#ellipse">ellipse</a></li><li class="index"><a class="dark index" href="./shapes.html#triangle">triangle</a></li></ul></div><div><h3>loaders</h3><ul><li class="index"><a class="dark index" href="./loaders.html#loadFont">loadFont</a></li></ul></div></div>
<div class="modules" id="reactive"><div class="summary"><h3>io</h3><ul><li class="index"><a class="dark index" href="./io.html#print">print</a></li></ul></div><div class="summary"><h3>shapes</h3><ul><li class="index"><a class="dark index" href="./shapes.html#circle">circle</a></li><li class="index"><a class="dark index" href="./shapes.html#rect">rect</a></li><li class="index"><a class="dark index" href="./shapes.html#square">square</a></li><li class="index"><a class="dark index" href="./shapes.html#line">line</a></li><li class="index"><a class="dark index" href="./shapes.html#quad">quad</a></li><li class="index"><a class="dark index" href="./shapes.html#text">text</a></li><li class="index"><a class="dark index" href="./shapes.html#point">point</a></li><li class="index"><a class="dark index" href="./shapes.html#arc">arc</a></li><li class="index"><a class="dark index" href="./shapes.html#ellipse">ellipse</a></li><li class="index"><a class="dark index" href="./shapes.html#triangle">triangle</a></li></ul></div><div class="summary"><h3>setting</h3><ul><li class="index"><a class="dark index" href="./setting.html#fill">fill</a></li><li class="index"><a class="dark index" href="./setting.html#strokeWeight">strokeWeight</a></li><li class="index"><a class="dark index" href="./setting.html#noFill">noFill</a></li><li class="index"><a class="dark index" href="./setting.html#stroke">stroke</a></li><li class="index"><a class="dark index" href="./setting.html#noStroke">noStroke</a></li><li class="index"><a class="dark index" href="./setting.html#textSize">textSize</a></li></ul></div><div class="summary"><h3>loaders</h3><ul><li class="index"><a class="dark index" href="./loaders.html#loadFont">loadFont</a></li></ul></div><div class="summary"><h3>events</h3><ul><li class="index"><a class="dark index" href="./events.html#isKeyDown">isKeyDown</a></li></ul></div><div class="summary"><h3>window</h3><ul><li class="index"><a class="dark index" href="./window.html#createWindow">createWindow</a></li><li class="index"><a class="dark index" href="./window.html#background">background</a></li></ul></div><div class="summary"><h3>lu5_math</h3><ul><li class="index"><a class="dark index" href="./lu5_math.html#round">round</a></li></ul></div></div>
</main>
</body>
</html>
2 changes: 2 additions & 0 deletions docs/io.html
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ <h1 class="module">io</h1>
<button class="menuBtn" onclick="toggleMenu()">
<img class="menuIcon" width="40px" src="./assets/arrow_left.svg"/>
</button>

<span class="version">v0.0.2</span>
</header>


Expand Down
3 changes: 2 additions & 1 deletion docs/loaders.html
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,14 @@ <h1 class="module">loaders</h1>
<button class="menuBtn" onclick="toggleMenu()">
<img class="menuIcon" width="40px" src="./assets/arrow_left.svg"/>
</button>

<span class="version">v0.0.2</span>
</header>


<div class="method" id="loadFont"><code>loadFont(path);</code><p>Load a font face</p><div class="params"><div class="param"><code class="name">path</code><span class="desc">The font path on the local system
</span></div></div><p></p><pre><code class="language-lua"> function setup()
createWindow(600, 600);

loadFont('/path/to/your/font.ttf');
end

Expand Down
2 changes: 2 additions & 0 deletions docs/lu5_math.html
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ <h1 class="module">lu5_math</h1>
<button class="menuBtn" onclick="toggleMenu()">
<img class="menuIcon" width="40px" src="./assets/arrow_left.svg"/>
</button>

<span class="version">v0.0.2</span>
</header>


Expand Down
2 changes: 2 additions & 0 deletions docs/setting.html
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ <h1 class="module">setting</h1>
<button class="menuBtn" onclick="toggleMenu()">
<img class="menuIcon" width="40px" src="./assets/arrow_left.svg"/>
</button>

<span class="version">v0.0.2</span>
</header>


Expand Down
2 changes: 2 additions & 0 deletions docs/shapes.html
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ <h1 class="module">shapes</h1>
<button class="menuBtn" onclick="toggleMenu()">
<img class="menuIcon" width="40px" src="./assets/arrow_left.svg"/>
</button>

<span class="version">v0.0.2</span>
</header>


Expand Down
2 changes: 2 additions & 0 deletions docs/window.html
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ <h1 class="module">window</h1>
<button class="menuBtn" onclick="toggleMenu()">
<img class="menuIcon" width="40px" src="./assets/arrow_left.svg"/>
</button>

<span class="version">v0.0.2</span>
</header>


Expand Down
20 changes: 13 additions & 7 deletions examples/text.lua
Original file line number Diff line number Diff line change
@@ -1,23 +1,29 @@
counter = 0;
x = 0;

function setup()
createWindow(400, 400);
createWindow(600, 600);

loadFont("/usr/share/fonts/TTF/Hack-Regular.ttf");
end

function draw()
background(51);

fill(255, 150, 50);
textSize(32);
textSize(48);
text('Text demo', 30, 10);

fill(190, 255, 40);
textSize(18);
text('Position: ' .. round(counter), 30, 40);
textSize(32);
text('Position: ' .. x, 30, 40);

fill(67, 165, 210);
square(counter, 200, 32);
square(x, 200, 32);

counter = (counter + 4) % width;
if (x > width) then
x = 0
else
x = x + 4;
end
end

0 comments on commit bbe8aca

Please sign in to comment.