···1414 <item>
1515<title>SDL2 Devlog</title>
1616<description><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>
1717+<h3 id="day-20">Day 20</h3>
1818+<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>
1919+<figure>
2020+<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>
2121+</figure>
1722<h3 id="day-19">Day 19</h3>
1823<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>
1924<figure>
···144149<img src="https://u.peppe.rs/Ma.png" alt="Day 1" /><figcaption aria-hidden="true">Day 1</figcaption>
145150</figure></description>
146151<link>https://peppe.rs/posts/SDL2_devlog/</link>
147147-<pubDate>Thu, 08 Apr 2021 12:09:00 +0000</pubDate>
152152+<pubDate>Sun, 11 Apr 2021 10:46:00 +0000</pubDate>
148153<guid>https://peppe.rs/posts/SDL2_devlog/</guid>
149154</item>
150155<item>
+8-3
docs/posts/SDL2_devlog/index.html
···2525">View Raw</a>
2626 <div class="separator"></div>
2727 <div class="date">
2828- 08/04 — 2021
2828+ 11/04 — 2021
2929 <div class="stats">
3030 <span class="stats-number">
3131- 120.28
3131+ 124.28
3232 </span>
3333 <span class="stats-unit">cm</span>
3434  
3535 <span class="stats-number">
3636- 9.6
3636+ 10.0
3737 </span>
3838 <span class="stats-unit">min</span>
3939 </div>
···4343 </h1>
4444 <div class="post-text">
4545 <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>
4646+<h3 id="day-20">Day 20</h3>
4747+<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>
4848+<figure>
4949+<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>
5050+</figure>
4651<h3 id="day-19">Day 19</h3>
4752<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>
4853<figure>
···55order, begin from the bottom, if this is your first time on
66this page.
7788+### Day 20
99+1010+More `lisp` stuff! I added a new brush, for rectangular
1111+selections. While selection doesn't do much on its own, the
1212+selected area can be passed onto a `lisp` procedure, for
1313+example, a procedure to draw horizontal black and white
1414+lines:
1515+1616+
1717+818### Day 19
9191020Attempted [some isometric