~sebsite/generic-tetromino-game

Colors: add BLACK v2 SUPERSEDED

Lorenz (xha): 1
 Colors: add BLACK

 2 files changed, 8 insertions(+), 0 deletions(-)
Export patchset (mbox)
How do I use this?

Copy & paste the following snippet into your terminal to import this patchset into git:

curl -s https://lists.sr.ht/~sebsite/generic-tetromino-game/patches/41337/mbox | git am -3
Learn more about email & git

[PATCH v2] Colors: add BLACK Export this patch

---
v2: docs :)

 main.c                      | 3 +++
 website/docs/api/index.html | 5 +++++
 2 files changed, 8 insertions(+)

diff --git a/main.c b/main.c
index 4db7e27..47db79d 100644
--- a/main.c
+++ b/main.c
@@ -70,6 +70,7 @@
#define INPUT_MASK_START (1 << 6)
#define INPUT_MASK_REPEAT (1 << 7)

#define BLACK 0x00000000
#define WHITE 0xffffffff
#define GREEN 0x287200ff
#define RED 0x982220ff
@@ -6856,6 +6857,8 @@ init_lua(void)
	lua_seti(L, -2, EV_TOPOUT);
	lua_setfield(L, -2, "__useroptions");
	lua_createtable(L, 0, 0); /* game.color */
	lua_pushinteger(L, (lua_Integer)BLACK);
	lua_setfield(L, -2, "BLACK");
	lua_pushinteger(L, (lua_Integer)WHITE);
	lua_setfield(L, -2, "WHITE");
	lua_pushinteger(L, (lua_Integer)GREEN);
diff --git a/website/docs/api/index.html b/website/docs/api/index.html
index 3b26dc5..2c0938b 100644
--- a/website/docs/api/index.html
+++ b/website/docs/api/index.html
@@ -327,6 +327,11 @@
          <p>Literally just white. idk why i'm even documenting this
          <pre><code><a href="#game" class="code-ref">game</a>.color.WHITE: integer</code></pre>
        </section>
	<section id="game-color-BLACK">
	  <h3><a href="#game-color-BLACK">game.color.BLACK</a></h3>
	  <p>It's exactly what you think it is
	  <pre><code><a href="#game" class="code-ref">game</a>.color.BLACK: integer</code></pre>
	</section>
        <section id="game-color-YELLOW">
          <h3><a href="#game-color-YELLOW">game.color.YELLOW</a></h3>
          <p>A yellow color from the NES color palette.
-- 
2.40.1