<?xml version="1.0" encoding="utf-8"?><feed xmlns="http://www.w3.org/2005/Atom"><title>freemind.bithack 示例</title><link href="https://zzxzzk115.github.io/hugo-theme-freemind-bithack/zh/atom.xml" rel="self"/><link href="https://zzxzzk115.github.io/hugo-theme-freemind-bithack/zh/"/><updated>2026-11-17T10:00:00+00:00</updated><id>https://zzxzzk115.github.io/hugo-theme-freemind-bithack/zh/</id><author><name>Your Name</name></author><generator uri="https://gohugo.io/">Hugo</generator><entry><title>组件示例</title><link href="https://zzxzzk115.github.io/hugo-theme-freemind-bithack/zh/2026/11/17/components/"/><id>https://zzxzzk115.github.io/hugo-theme-freemind-bithack/zh/2026/11/17/components/</id><published>2026-11-17T10:00:00+00:00</published><updated>2026-11-17T10:00:00+00:00</updated><summary type="html">与英文版同路径，所以两篇互为翻译，导航栏的语言切换会直接跳到对方。</summary><content type="html">&lt;p&gt;与英文版同路径，所以两篇互为翻译，导航栏的语言切换会直接跳到对方。&lt;/p&gt;
&lt;div class="alert alert-success md-alert"&gt;
&lt;p class="md-alert-title"&gt;&lt;i class="fa fa-lightbulb-o"&gt;&lt;/i&gt; 提示&lt;/p&gt;
&lt;p&gt;提示框、标签页、数学公式等写法与英文版相同。&lt;/p&gt;
&lt;/div&gt;
&lt;div class="math-block"&gt;&lt;span class="katex"&gt;&lt;math xmlns="http://www.w3.org/1998/Math/MathML" display="block"&gt;&lt;semantics&gt;&lt;mrow&gt;&lt;mi&gt;E&lt;/mi&gt;&lt;mo&gt;=&lt;/mo&gt;&lt;mi&gt;m&lt;/mi&gt;&lt;msup&gt;&lt;mi&gt;c&lt;/mi&gt;&lt;mn&gt;2&lt;/mn&gt;&lt;/msup&gt;&lt;/mrow&gt;&lt;annotation encoding="application/x-tex"&gt;
E = mc^2
&lt;/annotation&gt;&lt;/semantics&gt;&lt;/math&gt;&lt;/span&gt;&lt;/div&gt;
&lt;details class="md-details"&gt;
&lt;summary&gt;点击展开&lt;/summary&gt;
&lt;div class="md-details-body"&gt;&lt;p&gt;折叠区块里可以写任意 Markdown，也可以放其他短代码。&lt;/p&gt;
&lt;/div&gt;
&lt;/details&gt;
&lt;p&gt;&lt;a class="friend-card" href="https://gohugo.io/" target="_blank" rel="noopener"&gt;
&lt;span class="friend-avatar"&gt;
&lt;svg class="friend-avatar-default" viewBox="0 0 16 16" shape-rendering="crispEdges" aria-hidden="true"&gt;
&lt;rect width="16" height="16" fill="#1d1d1d"/&gt;
&lt;g fill="#8a8a8a"&gt;&lt;rect x="6" y="3" width="4" height="1"/&gt;&lt;rect x="5" y="4" width="6" height="4"/&gt;&lt;rect x="6" y="8" width="4" height="1"/&gt;&lt;rect x="4" y="10" width="8" height="1"/&gt;&lt;rect x="3" y="11" width="10" height="5"/&gt;&lt;/g&gt;
&lt;/svg&gt;
&lt;/span&gt;
&lt;span class="friend-info"&gt;
&lt;span class="friend-name"&gt;Hugo&lt;/span&gt;&lt;span class="friend-desc" title="静态网站生成器"&gt;静态网站生成器&lt;/span&gt;
&lt;span class="friend-tags"&gt;&lt;span class="friend-tag"&gt;Go&lt;/span&gt;&lt;span class="friend-tag"&gt;SSG&lt;/span&gt;&lt;/span&gt;
&lt;/span&gt;
&lt;/a&gt;
&lt;a class="friend-card" href="https://prismjs.com/" target="_blank" rel="noopener"&gt;
&lt;span class="friend-avatar"&gt;
&lt;svg class="friend-avatar-default" viewBox="0 0 16 16" shape-rendering="crispEdges" aria-hidden="true"&gt;
&lt;rect width="16" height="16" fill="#1d1d1d"/&gt;
&lt;g fill="#8a8a8a"&gt;&lt;rect x="6" y="3" width="4" height="1"/&gt;&lt;rect x="5" y="4" width="6" height="4"/&gt;&lt;rect x="6" y="8" width="4" height="1"/&gt;&lt;rect x="4" y="10" width="8" height="1"/&gt;&lt;rect x="3" y="11" width="10" height="5"/&gt;&lt;/g&gt;
&lt;/svg&gt;
&lt;/span&gt;
&lt;span class="friend-info"&gt;
&lt;span class="friend-name"&gt;Prism&lt;/span&gt;&lt;span class="friend-desc" title="代码高亮"&gt;代码高亮&lt;/span&gt;
&lt;span class="friend-tags"&gt;&lt;span class="friend-tag"&gt;JavaScript&lt;/span&gt;&lt;/span&gt;
&lt;/span&gt;
&lt;/a&gt;
&lt;/p&gt;
&lt;h2 id="音乐播放器aplayer"&gt;音乐播放器（APlayer）&lt;a class="headerlink" href="#%e9%9f%b3%e4%b9%90%e6%92%ad%e6%94%be%e5%99%a8aplayer" aria-label="Permalink"&gt;#&lt;/a&gt;&lt;/h2&gt;&lt;p&gt;网易云歌曲组成的播放列表，音频走网易云官方外链，标题和封面读 &lt;code&gt;data/music.toml&lt;/code&gt;。播放时封面像唱片一样转动。&lt;/p&gt;
&lt;pre class="line-numbers language-plaintext"&gt;&lt;code class="language-plaintext"&gt;{{&amp;lt; music ids=&amp;#34;1402719608, 1431168150&amp;#34; &amp;gt;}}
{{&amp;lt; music src=&amp;#34;/audio/song.mp3&amp;#34; title=&amp;#34;歌名&amp;#34; artist=&amp;#34;我&amp;#34; cover=&amp;#34;/img/cover.jpg&amp;#34; &amp;gt;}}&lt;/code&gt;&lt;/pre&gt;
&lt;div class="md-music" data-audio="[{&amp;#34;artist&amp;#34;:&amp;#34;Lazy_V 张可宣&amp;#34;,&amp;#34;cover&amp;#34;:&amp;#34;https://p2.music.126.net/_lH3mTaZhMNJmiZ04uvHmw==/109951164705992734.jpg?param=300y300&amp;#34;,&amp;#34;lrc&amp;#34;:&amp;#34;&amp;#34;,&amp;#34;name&amp;#34;:&amp;#34;Fear Rhythm (Demo Version)&amp;#34;,&amp;#34;page&amp;#34;:&amp;#34;https://music.163.com/#/song?id=1402719608&amp;#34;,&amp;#34;url&amp;#34;:&amp;#34;https://music.163.com/song/media/outer/url?id=1402719608.mp3&amp;#34;},{&amp;#34;artist&amp;#34;:&amp;#34;Lazy_V 张可宣&amp;#34;,&amp;#34;cover&amp;#34;:&amp;#34;https://p2.music.126.net/7Fjhy0dSTTAPw3Tm2oR-rw==/109951164806372997.jpg?param=300y300&amp;#34;,&amp;#34;lrc&amp;#34;:&amp;#34;&amp;#34;,&amp;#34;name&amp;#34;:&amp;#34;ACLer&amp;#39;s beat&amp;#34;,&amp;#34;page&amp;#34;:&amp;#34;https://music.163.com/#/song?id=1431168150&amp;#34;,&amp;#34;url&amp;#34;:&amp;#34;https://music.163.com/song/media/outer/url?id=1431168150.mp3&amp;#34;},{&amp;#34;artist&amp;#34;:&amp;#34;Lazy_V 张可宣&amp;#34;,&amp;#34;cover&amp;#34;:&amp;#34;https://p2.music.126.net/_lH3mTaZhMNJmiZ04uvHmw==/109951164705992734.jpg?param=300y300&amp;#34;,&amp;#34;lrc&amp;#34;:&amp;#34;&amp;#34;,&amp;#34;name&amp;#34;:&amp;#34;ISOLATION&amp;#34;,&amp;#34;page&amp;#34;:&amp;#34;https://music.163.com/#/song?id=1402843948&amp;#34;,&amp;#34;url&amp;#34;:&amp;#34;https://music.163.com/song/media/outer/url?id=1402843948.mp3&amp;#34;},{&amp;#34;artist&amp;#34;:&amp;#34;Lazy_V 张可宣&amp;#34;,&amp;#34;cover&amp;#34;:&amp;#34;https://p2.music.126.net/qIsYKyaH2H0FSwnJNqT96w==/109951164746950689.jpg?param=300y300&amp;#34;,&amp;#34;lrc&amp;#34;:&amp;#34;&amp;#34;,&amp;#34;name&amp;#34;:&amp;#34;Involution&amp;#34;,&amp;#34;page&amp;#34;:&amp;#34;https://music.163.com/#/song?id=1847289377&amp;#34;,&amp;#34;url&amp;#34;:&amp;#34;https://music.163.com/song/media/outer/url?id=1847289377.mp3&amp;#34;}]" data-fold="false" data-order="list" data-loop="all"&gt;
&lt;noscript&gt;&lt;ul&gt;&lt;li&gt;&lt;a href="https://music.163.com/#/song?id=1402719608" target="_blank" rel="noopener"&gt;Fear Rhythm (Demo Version) – Lazy_V 张可宣&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="https://music.163.com/#/song?id=1431168150" target="_blank" rel="noopener"&gt;ACLer&amp;#39;s beat – Lazy_V 张可宣&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="https://music.163.com/#/song?id=1402843948" target="_blank" rel="noopener"&gt;ISOLATION – Lazy_V 张可宣&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="https://music.163.com/#/song?id=1847289377" target="_blank" rel="noopener"&gt;Involution – Lazy_V 张可宣&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/noscript&gt;
&lt;/div&gt;
&lt;h2 id="itchio-游戏卡片"&gt;itch.io 游戏卡片&lt;a class="headerlink" href="#itchio-%e6%b8%b8%e6%88%8f%e5%8d%a1%e7%89%87" aria-label="Permalink"&gt;#&lt;/a&gt;&lt;/h2&gt;&lt;p&gt;和 itch.io 官方嵌入挂件同尺寸、同布局，由主题根据 &lt;code&gt;data/itch.toml&lt;/code&gt; 绘制，页面不请求 itch.io：&lt;/p&gt;
&lt;pre class="language-plaintext"&gt;&lt;code class="language-plaintext"&gt;{{&amp;lt; itch url=&amp;#34;https://lazy-v.itch.io/catmario-gb&amp;#34; desc=&amp;#34;猫里奥的 Game Boy 版。&amp;#34; &amp;gt;}}&lt;/code&gt;&lt;/pre&gt;
&lt;a class="itch-card" href="https://lazy-v.itch.io/catmario-gb" target="_blank" rel="noopener" aria-label="CatMario-GB – 在 itch.io 上玩"&gt;
&lt;span class="itch-cover pixel"&gt;&lt;img src="/hugo-theme-freemind-bithack/img/itch/lazy-v-catmario-gb.png" alt="" loading="lazy" class="nofancybox"&gt;&lt;/span&gt;
&lt;span class="itch-body"&gt;
&lt;span class="itch-title"&gt;CatMario-GB&lt;/span&gt;&lt;span class="itch-author"&gt;by Lazy_V&lt;/span&gt;&lt;span class="itch-desc"&gt;猫里奥的 Game Boy 版。&lt;/span&gt;
&lt;span class="itch-foot"&gt;
&lt;span class="itch-button"&gt;在 itch.io 上玩&lt;/span&gt;
&lt;span class="itch-site" aria-hidden="true"&gt;&lt;svg viewBox="0 0 16 16" width="14" height="14" shape-rendering="crispEdges" fill="currentColor"&gt;&lt;rect x="1" y="3" width="14" height="2"/&gt;&lt;rect x="2" y="5" width="12" height="2"/&gt;&lt;rect x="2" y="7" width="12" height="7"/&gt;&lt;rect x="5" y="9" width="2" height="2" fill="#111"/&gt;&lt;rect x="9" y="9" width="2" height="2" fill="#111"/&gt;&lt;/svg&gt; itch.io&lt;/span&gt;
&lt;/span&gt;
&lt;/span&gt;
&lt;/a&gt;
&lt;h2 id="链接卡片"&gt;链接卡片&lt;a class="headerlink" href="#%e9%93%be%e6%8e%a5%e5%8d%a1%e7%89%87" aria-label="Permalink"&gt;#&lt;/a&gt;&lt;/h2&gt;
&lt;a class="linkcard no-image" href="https://gohugo.io/" target="_blank" rel="noopener"&gt;
&lt;span class="linkcard-text"&gt;
&lt;span class="linkcard-title"&gt;Hugo&lt;/span&gt;&lt;span class="linkcard-desc"&gt;最快的静态网站生成框架之一。&lt;/span&gt;
&lt;span class="linkcard-site"&gt;&lt;i class="fa fa-link"&gt;&lt;/i&gt; gohugo.io&lt;/span&gt;
&lt;/span&gt;
&lt;/a&gt;
&lt;h2 id="任务列表"&gt;任务列表&lt;a class="headerlink" href="#%e4%bb%bb%e5%8a%a1%e5%88%97%e8%a1%a8" aria-label="Permalink"&gt;#&lt;/a&gt;&lt;/h2&gt;&lt;ul&gt;
&lt;li&gt;&lt;input checked="" disabled="" type="checkbox"&gt; 把主题移植到 Hugo&lt;/li&gt;
&lt;li&gt;&lt;input checked="" disabled="" type="checkbox"&gt; 代码也用像素字体&lt;/li&gt;
&lt;li&gt;&lt;input disabled="" type="checkbox"&gt; 多写点文章&lt;/li&gt;
&lt;/ul&gt;</content><category term="文档" scheme="https://zzxzzk115.github.io/hugo-theme-freemind-bithack/zh/categories/%E6%96%87%E6%A1%A3/"/><category term="短代码" scheme="https://zzxzzk115.github.io/hugo-theme-freemind-bithack/zh/tags/%E7%9F%AD%E4%BB%A3%E7%A0%81/"/></entry><entry><title>像素画 1：准备画布</title><link href="https://zzxzzk115.github.io/hugo-theme-freemind-bithack/zh/2026/10/01/01-canvas/"/><id>https://zzxzzk115.github.io/hugo-theme-freemind-bithack/zh/2026/10/01/01-canvas/</id><published>2026-10-01T10:00:00+00:00</published><updated>2026-10-01T10:00:00+00:00</updated><summary type="html">从小画布开始：14×10 就足够画一个经典的太空侵略者。</summary><content type="html">&lt;p&gt;从小画布开始：14×10 就足够画一个经典的太空侵略者。&lt;/p&gt;
&lt;h2 id="选择尺寸"&gt;选择尺寸&lt;a class="headerlink" href="#%e9%80%89%e6%8b%a9%e5%b0%ba%e5%af%b8" aria-label="Permalink"&gt;#&lt;/a&gt;&lt;/h2&gt;&lt;p&gt;小画布会逼你想清楚每个像素的作用。先画轮廓，再填充。&lt;/p&gt;
&lt;figure class="md-figure"&gt;&lt;img src="/hugo-theme-freemind-bithack/images/invader.png" alt="14×10 的侵略者，放大 16 倍" loading="lazy" decoding="async"&gt;&lt;figcaption&gt;14×10 的侵略者，放大 16 倍&lt;/figcaption&gt;&lt;/figure&gt;&lt;h2 id="按整数倍导出"&gt;按整数倍导出&lt;a class="headerlink" href="#%e6%8c%89%e6%95%b4%e6%95%b0%e5%80%8d%e5%af%bc%e5%87%ba" aria-label="Permalink"&gt;#&lt;/a&gt;&lt;/h2&gt;&lt;p&gt;始终按整数倍（2×、4×、16×）放大，像素才能保持方正：&lt;/p&gt;
&lt;pre class="line-numbers language-python"&gt;&lt;code class="language-python"&gt;from PIL import Image
img = Image.open(&amp;#34;invader.png&amp;#34;)
img.resize((img.width * 16, img.height * 16), Image.NEAREST).save(&amp;#34;invader@16x.png&amp;#34;)&lt;/code&gt;&lt;/pre&gt;</content><category term="美术" scheme="https://zzxzzk115.github.io/hugo-theme-freemind-bithack/zh/categories/%E7%BE%8E%E6%9C%AF/"/><category term="像素画" scheme="https://zzxzzk115.github.io/hugo-theme-freemind-bithack/zh/tags/%E5%83%8F%E7%B4%A0%E7%94%BB/"/><category term="教程" scheme="https://zzxzzk115.github.io/hugo-theme-freemind-bithack/zh/tags/%E6%95%99%E7%A8%8B/"/></entry></feed>