From 73d99e5fd317eca8b42eefba0f741c1a309a0098 Mon Sep 17 00:00:00 2001 From: Akshay Date: Sun, 11 Apr 2021 16:17:38 +0530 Subject: add day 20 of devlog --- docs/index.html | 4 ++-- docs/index.xml | 7 ++++++- docs/posts/SDL2_devlog/index.html | 11 ++++++++--- docs/posts/index.html | 4 ++-- posts/SDL2_devlog.md | 10 ++++++++++ 5 files changed, 28 insertions(+), 8 deletions(-) diff --git a/docs/index.html b/docs/index.html index 2ab91b8..7ae6ace 100644 --- a/docs/index.html +++ b/docs/index.html @@ -42,7 +42,7 @@
- 08/04 — 2021 + 11/04 — 2021
SDL2 Devlog @@ -50,7 +50,7 @@ - 9.6 + 10.0 min diff --git a/docs/index.xml b/docs/index.xml index e0ae321..f0f3f71 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-20">Day 20</h3> +<p>More <code>lisp</code> stuff! I added a new brush, for rectangular selections. While selection doesn’t do much on its own, the selected area can be passed onto a <code>lisp</code> procedure, for example, a procedure to draw horizontal black and white lines:</p> +<figure> +<video src="https://u.peppe.rs/frU.mp4" controls=""><a href="https://u.peppe.rs/frU.mp4">Day 20</a></video><figcaption aria-hidden="true">Day 20</figcaption> +</figure> <h3 id="day-19">Day 19</h3> <p>Attempted <a href="https://peppe.rs/art/conduit.png">some isometric art</a> within the editor. The angles displayed alongside the line brush are handly, however, having only a rectangular grid did not help. I implemented an isometric grid today. Isometric grids in pixel art differ in that the tangent of the isometric angle is exactly 0.5! For every pixel down, you go exactly two pixels sideways. The math works out really well in the drawing procedures too, dealing with floating points is a pain.</p> <figure> @@ -144,7 +149,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, 08 Apr 2021 12:09:00 +0000 +Sun, 11 Apr 2021 10:46: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 85ab1af..f5e631f 100644 --- a/docs/posts/SDL2_devlog/index.html +++ b/docs/posts/SDL2_devlog/index.html @@ -25,15 +25,15 @@ ">View Raw
- 08/04 — 2021 + 11/04 — 2021
- 120.28 + 124.28 cm   - 9.6 + 10.0 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 20

+

More lisp stuff! I added a new brush, for rectangular selections. While selection doesn’t do much on its own, the selected area can be passed onto a lisp procedure, for example, a procedure to draw horizontal black and white lines:

+
+ +

Day 19

Attempted some isometric art within the editor. The angles displayed alongside the line brush are handly, however, having only a rectangular grid did not help. I implemented an isometric grid today. Isometric grids in pixel art differ in that the tangent of the isometric angle is exactly 0.5! For every pixel down, you go exactly two pixels sideways. The math works out really well in the drawing procedures too, dealing with floating points is a pain.

diff --git a/docs/posts/index.html b/docs/posts/index.html index 028db12..d91d691 100644 --- a/docs/posts/index.html +++ b/docs/posts/index.html @@ -27,7 +27,7 @@
- 08/04 — 2021 + 11/04 — 2021
SDL2 Devlog @@ -35,7 +35,7 @@ - 9.6 + 10.0 min diff --git a/posts/SDL2_devlog.md b/posts/SDL2_devlog.md index 569fdba..9c4ef41 100644 --- a/posts/SDL2_devlog.md +++ b/posts/SDL2_devlog.md @@ -5,6 +5,16 @@ 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 20 + +More `lisp` stuff! I added a new brush, for rectangular +selections. While selection doesn't do much on its own, the +selected area can be passed onto a `lisp` procedure, for +example, a procedure to draw horizontal black and white +lines: + +![Day 20](https://u.peppe.rs/frU.mp4) + ### Day 19 Attempted [some isometric -- cgit v1.2.3