From 4168f77e077a30aa800eec9b08ce2b7bf86ee348 Mon Sep 17 00:00:00 2001 From: vlev Date: Fri, 3 May 2024 20:20:04 -0400 Subject: [PATCH] docs build --- docs/events.html | 2 +- docs/index.html | 2 +- docs/io.html | 2 +- docs/loaders.html | 3 ++- docs/setting.html | 19 ++++++++++++++++--- 5 files changed, 21 insertions(+), 7 deletions(-) diff --git a/docs/events.html b/docs/events.html index 9aab5cd8..fa4c96ff 100644 --- a/docs/events.html +++ b/docs/events.html @@ -32,7 +32,7 @@

events

-
isKeyDown(k);

Check if a keyboard key is pressed, returns true if key is down and returns false if it's not

Arguments

kThe keyboard key to check +
isKeyDown(k);

Check if a keyboard key is pressed, returns true if key is down and returns false if it's not

Arguments

kThe keyboard key to check

Returns

booleanWhether or not the key is down


diff --git a/docs/index.html b/docs/index.html index 6f66d4b3..80b8e58d 100644 --- a/docs/index.html +++ b/docs/index.html @@ -31,7 +31,7 @@

Reference

v0.0.2 - + diff --git a/docs/io.html b/docs/io.html index 7c4758c6..8dad6a66 100644 --- a/docs/io.html +++ b/docs/io.html @@ -32,7 +32,7 @@

io

-
print(value);

Printing utility, can take any lua type, and any number of arguments.

Arguments

valueThe value to print to stdout +
print(value);

Printing utility, can take any lua type (except objects).

Arguments

valueThe value to print to stdout


diff --git a/docs/loaders.html b/docs/loaders.html index 0fd84452..b1f3531c 100644 --- a/docs/loaders.html +++ b/docs/loaders.html @@ -35,12 +35,13 @@

loaders

loadFont(path);

Load a font face

Arguments

pathThe font path on the local system

 function setup()
    createWindow(600, 600);
-   loadFont('/path/to/your/font.ttf');
+   myfont = loadFont('/path/to/myfont.ttf');
  end
 
  function draw()
    background(51);
 
+   textFont(myfont);
    text('Hello from lu5!', 30, 50);
  end   

diff --git a/docs/setting.html b/docs/setting.html index 34d1913c..a8d91b5a 100644 --- a/docs/setting.html +++ b/docs/setting.html @@ -46,11 +46,24 @@

setting

gThe green byte
bThe blue byte
aThe alpha byte -

Only implemented with for `line` and `circle`


-
noStroke();

Only implemented with for `line` and `circle` +

Only implemented for line and circle


+
noStroke();

Only implemented for line and circle Disable stroke

Arguments


textSize(size);

Set the font size

Arguments

sizeThe size of the font in pixels -


+

If this is called using fonts, make sure to call textSize after calling textFont


+
textFont(font);

Set the font family

Arguments

fontThe font value returned when using loadFont +

 function setup()
+   createWindow(600, 600);
+
+   myfont = loadFont('path/to/myfont.ttf');
+ end
+
+ function draw()
+   background(51);
+ 
+   textFont(myfont);
+   text('Hello world!', 100, 200);
+ end