From 983d2d2aa2042a528f75d6255761968296c9e14b Mon Sep 17 00:00:00 2001 From: Akshay Date: Tue, 23 Mar 2021 17:55:56 +0530 Subject: add day 12 of devlog --- docs/index.html | 4 ++-- docs/index.xml | 7 ++++++- docs/posts/SDL2_devlog/index.html | 11 ++++++++--- docs/posts/index.html | 4 ++-- docs/style.css | 4 ++++ 5 files changed, 22 insertions(+), 8 deletions(-) (limited to 'docs') diff --git a/docs/index.html b/docs/index.html index 1460d92..c1c1c92 100644 --- a/docs/index.html +++ b/docs/index.html @@ -42,7 +42,7 @@
- 18/03 — 2021 + 23/03 — 2021
SDL2 Devlog @@ -50,7 +50,7 @@ - 5.2 + 5.7 min diff --git a/docs/index.xml b/docs/index.xml index 25d248e..607f428 100644 --- a/docs/index.xml +++ b/docs/index.xml @@ -14,6 +14,11 @@ SDL2 Devlog <p>I have been working on an editor for the <a href="https://git.peppe.rs/graphics/obi/about">One Bit Image</a> file format in Rust and SDL2. This entry in my blog follows my progress on the editor. The days are listed in reverse chronological order, begin from the bottom, if this is your first time on this page.</p> +<h3 id="day-12">Day 12</h3> +<p>I lifted most of <a href="https://github.com/murarth/ketos">murarth/ketos</a> into the editor. <code>ketos</code>’s implementation of <code>lisp</code> is too vast for my use case. For example, the editor does not need data types to handle raw strings or byte strings. I have got a basic evaluator running inside the SDL2 context (notice the <code>lisp</code> REPL at the bottom of the window). Over the following days, I intend to create a set of prelude functions to manipulate the pixmap. Users can implement their own brushes, dithering patterns, keybinds and more (hopefully).</p> +<figure> +<video src="https://u.peppe.rs/y0.mp4" controls=""><a href="https://u.peppe.rs/y0.mp4">Day 12</a></video><figcaption aria-hidden="true">Day 12</figcaption> +</figure> <h3 id="day-11">Day 11</h3> <p>I intend to supplement the editor with scripting language and an inbuilt REPL for the same. I began by implementing a text box widget from scratch, with history and readline like editing:</p> <figure> @@ -75,7 +80,7 @@ <img src="https://u.peppe.rs/Ma.png" alt="Day 1" /><figcaption aria-hidden="true">Day 1</figcaption> </figure> https://peppe.rs/posts/SDL2_devlog/ -Thu, 18 Mar 2021 14:04:00 +0000 +Tue, 23 Mar 2021 12:25:00 +0000 https://peppe.rs/posts/SDL2_devlog/ diff --git a/docs/posts/SDL2_devlog/index.html b/docs/posts/SDL2_devlog/index.html index 4b07892..80ca81e 100644 --- a/docs/posts/SDL2_devlog/index.html +++ b/docs/posts/SDL2_devlog/index.html @@ -25,15 +25,15 @@ ">View Raw
- 18/03 — 2021 + 23/03 — 2021
- 59.53 + 65.93 cm   - 5.2 + 5.7 min
@@ -43,6 +43,11 @@

I have been working on an editor for the One Bit Image file format in Rust and SDL2. This entry in my blog follows my progress on the editor. The days are listed in reverse chronological order, begin from the bottom, if this is your first time on this page.

+

Day 12

+

I lifted most of murarth/ketos into the editor. ketos’s implementation of lisp is too vast for my use case. For example, the editor does not need data types to handle raw strings or byte strings. I have got a basic evaluator running inside the SDL2 context (notice the lisp REPL at the bottom of the window). Over the following days, I intend to create a set of prelude functions to manipulate the pixmap. Users can implement their own brushes, dithering patterns, keybinds and more (hopefully).

+
+ +

Day 11

I intend to supplement the editor with scripting language and an inbuilt REPL for the same. I began by implementing a text box widget from scratch, with history and readline like editing:

diff --git a/docs/posts/index.html b/docs/posts/index.html index 39fbda9..0d546bd 100644 --- a/docs/posts/index.html +++ b/docs/posts/index.html @@ -27,7 +27,7 @@
- 18/03 — 2021 + 23/03 — 2021
SDL2 Devlog @@ -35,7 +35,7 @@ - 5.2 + 5.7 min diff --git a/docs/style.css b/docs/style.css index b760db0..cdcb2d0 100644 --- a/docs/style.css +++ b/docs/style.css @@ -190,6 +190,10 @@ pre > code { margin: 0.5rem; } +figure { + text-align: center; +} + img { max-width: 100%; border: 2px solid var(--dark-white); -- cgit v1.2.3