diff options
author | Akshay <[email protected]> | 2021-04-11 11:47:38 +0100 |
---|---|---|
committer | Akshay <[email protected]> | 2021-04-11 11:47:38 +0100 |
commit | 73d99e5fd317eca8b42eefba0f741c1a309a0098 (patch) | |
tree | 22477af08c35e190738236213cdcba5c88b2e4cc /docs/posts | |
parent | 5a43ac3be6d788e6c662213710b36b36bce93478 (diff) |
add day 20 of devlog
Diffstat (limited to 'docs/posts')
-rw-r--r-- | docs/posts/SDL2_devlog/index.html | 11 | ||||
-rw-r--r-- | docs/posts/index.html | 4 |
2 files changed, 10 insertions, 5 deletions
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 @@ | |||
25 | ">View Raw</a> | 25 | ">View Raw</a> |
26 | <div class="separator"></div> | 26 | <div class="separator"></div> |
27 | <div class="date"> | 27 | <div class="date"> |
28 | 08/04 — 2021 | 28 | 11/04 — 2021 |
29 | <div class="stats"> | 29 | <div class="stats"> |
30 | <span class="stats-number"> | 30 | <span class="stats-number"> |
31 | 120.28 | 31 | 124.28 |
32 | </span> | 32 | </span> |
33 | <span class="stats-unit">cm</span> | 33 | <span class="stats-unit">cm</span> |
34 |   | 34 |   |
35 | <span class="stats-number"> | 35 | <span class="stats-number"> |
36 | 9.6 | 36 | 10.0 |
37 | </span> | 37 | </span> |
38 | <span class="stats-unit">min</span> | 38 | <span class="stats-unit">min</span> |
39 | </div> | 39 | </div> |
@@ -43,6 +43,11 @@ | |||
43 | </h1> | 43 | </h1> |
44 | <div class="post-text"> | 44 | <div class="post-text"> |
45 | <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> | 45 | <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> |
46 | <h3 id="day-20">Day 20</h3> | ||
47 | <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> | ||
48 | <figure> | ||
49 | <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> | ||
50 | </figure> | ||
46 | <h3 id="day-19">Day 19</h3> | 51 | <h3 id="day-19">Day 19</h3> |
47 | <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> | 52 | <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> |
48 | <figure> | 53 | <figure> |
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 @@ | |||
27 | <tr> | 27 | <tr> |
28 | <td class=table-post> | 28 | <td class=table-post> |
29 | <div class="date"> | 29 | <div class="date"> |
30 | 08/04 — 2021 | 30 | 11/04 — 2021 |
31 | </div> | 31 | </div> |
32 | <a href="/posts/SDL2_devlog" class="post-link"> | 32 | <a href="/posts/SDL2_devlog" class="post-link"> |
33 | <span class="post-link">SDL2 Devlog</span> | 33 | <span class="post-link">SDL2 Devlog</span> |
@@ -35,7 +35,7 @@ | |||
35 | </td> | 35 | </td> |
36 | <td class=table-stats> | 36 | <td class=table-stats> |
37 | <span class="stats-number"> | 37 | <span class="stats-number"> |
38 | 9.6 | 38 | 10.0 |
39 | </span> | 39 | </span> |
40 | <span class=stats-unit>min</span> | 40 | <span class=stats-unit>min</span> |
41 | </td> | 41 | </td> |