<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/"><channel><title>创意编程 on LeafCxy's Blog</title><link>https://leafcxy.github.io/tags/%E5%88%9B%E6%84%8F%E7%BC%96%E7%A8%8B/</link><description>Recent content in 创意编程 on LeafCxy's Blog</description><generator>Hugo</generator><language>zh-cn</language><lastBuildDate>Thu, 12 Nov 2026 10:00:00 +0800</lastBuildDate><atom:link href="https://leafcxy.github.io/tags/%E5%88%9B%E6%84%8F%E7%BC%96%E7%A8%8B/index.xml" rel="self" type="application/rss+xml"/><item><title>拆解一段 JavaScript 字符动画：36 进制、三角函数与自引用源码</title><link>https://leafcxy.github.io/posts/2026/11/javascript-self-referential-ascii-animation/</link><pubDate>Thu, 12 Nov 2026 10:00:00 +0800</pubDate><guid>https://leafcxy.github.io/posts/2026/11/javascript-self-referential-ascii-animation/</guid><description>&lt;p&gt;一个只有十几行的 &lt;code&gt;index.html&lt;/code&gt;，打开后却能不断重绘字符画，还把自己的 JavaScript 源码织进画面。代码中充满 &lt;code&gt;eval&lt;/code&gt;、&lt;code&gt;with&lt;/code&gt;、位运算和嵌在注释里的字符，让人很难第一眼看出它在做什么。&lt;/p&gt;
&lt;p&gt;在 Chromium 中运行时，页面显示 16 行、每行 61 个字符的源码背景，中间覆盖一条由空格、&lt;code&gt;*&lt;/code&gt; 和 &lt;code&gt;#&lt;/code&gt; 组成的横向透镜形图案。图案的轮廓基本固定，内部字符不断变化；每行末尾还有一个可见的反斜杠。&lt;/p&gt;</description></item></channel></rss>