我并未杀死斯坦利·利伯:如何使用9front绘图

Lobsters Hottest 工具

摘要

关于在9front操作系统中使用paint(1)工具的详细指南,涵盖硬件设置、绘图技巧和图像处理命令。

<p><a href="https://lobste.rs/s/3eo2nv/i_did_not_kill_stanley_lieber_how_draw_with">评论</a></p>
查看原文
查看缓存全文

缓存时间: 2026/07/09 13:38

# 我没有杀死斯坦利·利伯:如何(在 9front 中)绘画 来源:https://triapul.cz/automa/i_did_not_kill_stanley_lieber pic *v1, 2026\-07\-09* 关于 paint(1) 和 9front 艺术机器的倒数第二篇论文。 - 0 问题。(https://triapul.cz/automa/i_did_not_kill_stanley_lieber#zero) - 1 如何绘画 (https://triapul.cz/automa/i_did_not_kill_stanley_lieber#one) - - 1.1 机器 (https://triapul.cz/automa/i_did_not_kill_stanley_lieber#the_machine) - - 1.1.1 一台计算机 (https://triapul.cz/automa/i_did_not_kill_stanley_lieber#a_computer) - 1.1.2 二合一 (https://triapul.cz/automa/i_did_not_kill_stanley_lieber#two_in_one) - 1.2 输入 (https://triapul.cz/automa/i_did_not_kill_stanley_lieber#the_input) - - 1.2.1 鼠标 (https://triapul.cz/automa/i_did_not_kill_stanley_lieber#mouse) - 1.2.2 手指 (https://triapul.cz/automa/i_did_not_kill_stanley_lieber#finger) - 1.2.3 数位板 (https://triapul.cz/automa/i_did_not_kill_stanley_lieber#tablet) - 1.2.4 键盘 (https://triapul.cz/automa/i_did_not_kill_stanley_lieber#keyboard) - 1.2.5 Drawterm / VNC (https://triapul.cz/automa/i_did_not_kill_stanley_lieber#drawterm) - 1.3 媒介 (https://triapul.cz/automa/i_did_not_kill_stanley_lieber#the_medium) - 2 paint(1) (https://triapul.cz/automa/i_did_not_kill_stanley_lieber#paint) - - 2.1 开始使用 (https://triapul.cz/automa/i_did_not_kill_stanley_lieber#getting_startled) - - 2.1.1 笔和鼠标 (https://triapul.cz/automa/i_did_not_kill_stanley_lieber#pen_and_mouse) - 2.1.2 paint(1) 不能为你做什么 (https://triapul.cz/automa/i_did_not_kill_stanley_lieber#cant_do_it) - 2.1.3 paint(1) 按键 (https://triapul.cz/automa/i_did_not_kill_stanley_lieber#paint_keys) - 2.2 画布 (https://triapul.cz/automa/i_did_not_kill_stanley_lieber#canvas) - 2.2.1 将 paint(1) 的初始窗口大小视为你的画布 (https://triapul.cz/automa/i_did_not_kill_stanley_lieber#initial_window) - 2.3 工具 (https://triapul.cz/automa/i_did_not_kill_stanley_lieber#tools) - - 2.3.1 颜色 (https://triapul.cz/automa/i_did_not_kill_stanley_lieber#colors) - 2.3.2 画笔 (https://triapul.cz/automa/i_did_not_kill_stanley_lieber#brush) - 2.3.3 填充 (https://triapul.cz/automa/i_did_not_kill_stanley_lieber#fill) - 2.3.4 橡皮擦 (https://triapul.cz/automa/i_did_not_kill_stanley_lieber#eraser) - 2.3.5 直线 (https://triapul.cz/automa/i_did_not_kill_stanley_lieber#straight_line) - 2.3.6 圆 (https://triapul.cz/automa/i_did_not_kill_stanley_lieber#straight_line) - 2.3.7 平移 (https://triapul.cz/automa/i_did_not_kill_stanley_lieber#pan) - 2.3.8 缩放 (https://triapul.cz/automa/i_did_not_kill_stanley_lieber#zoom) - 2.3.9 撤销 (https://triapul.cz/automa/i_did_not_kill_stanley_lieber#undo) - 2.3.10 重置 (https://triapul.cz/automa/i_did_not_kill_stanley_lieber#reset) - 2.4 伪图层 (https://triapul.cz/automa/i_did_not_kill_stanley_lieber#faux_layers) - 3 图像操作 (https://triapul.cz/automa/i_did_not_kill_stanley_lieber#image_operations) - - 3.1 page(1) (https://triapul.cz/automa/i_did_not_kill_stanley_lieber#page) - - 3.1.1 视口 (https://triapul.cz/automa/i_did_not_kill_stanley_lieber#viewport) - 3.2 vcrop(1), crop(1) (https://triapul.cz/automa/i_did_not_kill_stanley_lieber#crop) - 3.3 resize(1) (https://triapul.cz/automa/i_did_not_kill_stanley_lieber#resize) - 3.4 rotate(1) (https://triapul.cz/automa/i_did_not_kill_stanley_lieber#rotate) - 3.5 特定画布尺寸 (https://triapul.cz/automa/i_did_not_kill_stanley_lieber#specific_canvas_size) - - 3.5.1 裁剪数学 (https://triapul.cz/automa/i_did_not_kill_stanley_lieber#crop_mathematics) - 3.5.2 额外边距 (https://triapul.cz/automa/i_did_not_kill_stanley_lieber#extra_margin) - 3.5.3 额外边距 (https://triapul.cz/automa/i_did_not_kill_stanley_lieber#just_draw_crop_marks) - 3.6 伪图层:卷土重来 (https://triapul.cz/automa/i_did_not_kill_stanley_lieber#faux_layers_slight_return) - 3.7 描摹是双向的 (https://triapul.cz/automa/i_did_not_kill_stanley_lieber#tracers_work_both_ways) - 3.8 调色板 (https://triapul.cz/automa/i_did_not_kill_stanley_lieber#palettes) - 4 导出!(https://triapul.cz/automa/i_did_not_kill_stanley_lieber#get_it_out) - - 4.1 转换 (https://triapul.cz/automa/i_did_not_kill_stanley_lieber#conversion) - 4.2 停止 9front (https://triapul.cz/automa/i_did_not_kill_stanley_lieber#get_it_out) - 5 结束 (https://triapul.cz/automa/i_did_not_kill_stanley_lieber#eof) - - 5.1 特别感谢 (https://triapul.cz/automa/i_did_not_kill_stanley_lieber#special_thanks) - 5.2 资源 (https://triapul.cz/automa/i_did_not_kill_stanley_lieber#credits) ## 0 问题。(https://triapul.cz/automa/i_did_not_kill_stanley_lieber#zero) **《如何绘画》是什么?** 这是一份文档,教你如何像我一样,在你一无所知的操作系统上绘画。 **《如何绘画》适合谁?** - 变态 - 机器人 - 女巫 **《如何绘画》不适合谁?** - 艺术家 - 无神论者 - 反传统者 **为什么《如何绘画》要提交给 OCC (http://occ.sdf.org/) 2026?** 我的 9front 艺术机器是一台旧电脑。它用于创建本文档以及大部分附件图片。 **《如何绘画》的 tl;dr 版本是什么?** 点击并拖动。 **如何开始使用 9front?** - 前往这里 (https://9front.org/) - 阅读书 (https://fqa.9front.org/dash1.gefs-sp1.pdf) 在继续往下滚动之前,强烈建议你先阅读《Free Carrots #8: How to draw (https://helpful.cat-v.org/Blog/2024/07/07/0/)》以熟悉绘画的历史和哲学,以及你可能想探索的硬件和软件选项。 说完了这些,开始吧: ## 1 如何绘画 (https://triapul.cz/automa/i_did_not_kill_stanley_lieber#one) 要绘画,你需要两样东西:画画的工具和画画的对象。 自然倾向可能是使用真正的设备,用笔接触并画出线条,但用 9front 绘画还有更糟糕、更不方便的方法,你可能会更喜欢。虽然本文档是针对可以用屏幕绘画的计算机编写的,但大部分内容也适用于以下任何一种输入方法。也许你还能想出新的方法。 ### 1.1 机器 (https://triapul.cz/automa/i_did_not_kill_stanley_lieber#the_machine) #### 1.1.1 一台计算机 (https://triapul.cz/automa/i_did_not_kill_stanley_lieber#a_computer) 如果你不在乎在屏幕上绘画,你可以在任何运行 9front 的计算机上学习《如何绘画》。 pic #### 1.1.2 二合一 (https://triapul.cz/automa/i_did_not_kill_stanley_lieber#two_in_one) pic 一体化设备。画布和画笔——或许对于喜欢在纸上绘画的人来说是理想选择。带有手写笔的 Wacom 化笔记本电脑。打开屏幕并直接在上面画。 以下是一份经证明适用于《如何绘画》的设备列表: - ThinkPad X41t (https://plan9.stanleylieber.com/hardware/thinkpad/x41t/1866-9mu/) - Thinkpad X60t, X61t (https://plan9.stanleylieber.com/hardware/thinkpad/x61t/) - ThinkPad X380 Yoga (https://plan9.stanleylieber.com/hardware/thinkpad/x380/yoga/) - ThinkPad X1 Yoga 3rd Gen (https://plan9.stanleylieber.com/hardware/thinkpad/x1/yoga/g3/) - ThinkPad X1 Titanium Yoga (https://plan9.stanleylieber.com/hardware/thinkpad/x1/titanium/yoga/) 可能还有一百万种其他运行良好的 2 合 1 9front 艺术机器,你只需要找到它们,并且最好告诉别人你找到了。 ### 1.2 输入 (https://triapul.cz/automa/i_did_not_kill_stanley_lieber#the_input) #### 1.2.1 鼠标 (https://triapul.cz/automa/i_did_not_kill_stanley_lieber#mouse) 鼠标绘画是一种非常古老的技术。因其与任何有鼠标的计算机的兼容性而备受青睐。 pic #### 1.2.2 手指 (https://triapul.cz/automa/i_did_not_kill_stanley_lieber#finger) 触摸屏幕模拟左键点击。无法模拟其他点击,因此需要附近有鼠标。有些人整个噱头就在于他们用手指画他们的艺术。如果你有允许的设备,你可以用 9front 用手指绘画。 pic #### 1.2.3 数位板 (https://triapul.cz/automa/i_did_not_kill_stanley_lieber#tablet) pic 带屏幕的外部数位板(可能)不能在 9front 上使用。不带屏幕的外部数位板可能可以。与 2 合 1 绘画计算机类似,带有按钮的外部数位板笔可以模拟所有三种鼠标点击。我见过。 在我亲自尝试过的三块数位板中,值得推荐的是 **GAOMON S620** pic 专门为 9front 购买,我最终在 OpenBSD 中用它在早期的《Techno-Mage (https://analognowhere.com/)》画了大量的内容。在 9front 中仍然很好用。即插即用。在 OpenBSD 中就不太好用了。 其他两块: - **像触摸板一样工作(相对定位)** Wacom CTL-672 - **不工作** Wacom CTL-490 更多关于外部数位板的信息:[\[fqa\] 3.2.4 - 数位板数字化仪](https://fqa.9front.org/fqa3.html#3.2.4) #### 1.2.4 键盘 (https://triapul.cz/automa/i_did_not_kill_stanley_lieber#keyboard) 你实际上无法用键盘绘画(尽管你可以*编写*图片),但你也不能完全不用它。对于平板电脑、无法使用的物理键盘以及其他独特的设置,有 `bitsy/keyboard`,一个屏幕键盘。需要通过 rio 使用 *-k* 选项启动: `` % rio -k 'bitsy/keyboard -n' `` pic #### 1.2.5 Drawterm / vnc (https://triapul.cz/automa/i_did_not_kill_stanley_lieber#drawterm) 通过 Drawterm 连接到远程和/或虚拟的 9front 计算机,使用上述任何一种方法、设备以及更多设备。你可能会体验不佳,但你的工具箱大小将急剧增长。你可以从你的 Android 手机用手指在 9front 上绘画,从任何 Linux 和 MacOS 上用鼠标绘画,从 Windows 上使用所有在 9front 上不工作的输入设备……任何这些组合都会给你的潜在雇主留下深刻印象。 pic drawterm.9front.org (https://drawterm.9front.org/) ## 1.3 媒介 (https://triapul.cz/automa/i_did_not_kill_stanley_lieber#the_medium) 所有图像操作、绘画、裁剪等都在 9front 内部 **image(6)** 格式的文件上进行。这是本文档所有内容的默认格式。对于制作图片来说,这无关紧要,你永远不需要考虑它。只有当你想要将你的作品分享给更广阔的世界时,你才需要将其转换为其他格式。 pic 我通常将我的 9front 图片文件命名为 `file.pic`。你可以随意命名它们。 ## 2 paint(1) (https://triapul.cz/automa/i_did_not_kill_stanley_lieber#paint_1) pic 虽然 9front 有相当多的绘画软件可供选择,但本文档只关注 `paint(1)`,即原始的 9front 绘画程序。没有多少人知道它从何而来。有人说它凭空出现。有人指责 cinap。无论起源神话如何,如今的 `paint(1)` 被称为地狱七王子之一。 paint ### 2.1 开始使用 (https://triapul.cz/automa/i_did_not_kill_stanley_lieber#getting_startled) 忘记你对数字艺术的所有认知。忘记你对绘画的所有认知。随着你继续阅读,你会意识到使用 `paint(1)` 比任何其他数字绘画程序都更接近于使用实物纸张、墨水和颜色绘画。它就像模拟艺术,但又不是。 像所有事情一样,建议你阅读本文中提到程序的文档。此处列出和描述的功能和选项旨在向读者解释《如何绘画》,它们只涵盖了可能对实现该目标有用的部分。 #### 2.1.1 笔和鼠标 (https://triapul.cz/automa/i_did_not_kill_stanley_lieber#pen_and_mouse) 数位板和计算机笔及其按钮只模拟鼠标输入。本文档将只引用鼠标操作。你需要自己学习如何用笔执行这些操作。悬空模拟鼠标移动,接触表面模拟左键点击(或按住)。在理想世界中,一支笔有两个额外按钮:一个用于中键,一个用于右键。在不太理想的世界中,其中一个按钮模拟中键或右键,另一个按钮将笔置于不同的设备模式(这通常用于将按钮映射到不同的工具)——在 9front 中,这可能什么都不做,或者可能模拟第三个缺失的鼠标点击。结果可能因设备而异。 pic 如果你的笔只有一个可用的按钮,并且它模拟右键,你可以通过按住 shift 键然后按住笔按钮来模拟中键点击。例如,按住按钮时会擦除,按住 shift 和按钮时会平移。大多数情况下,你希望键盘和鼠标都放在附近,以执行你的笔无法完成的操作。如果你的笔可以模拟所有三种鼠标点击,那么在使用 `paint(1)` 时,你可能只需要一个虚拟键盘(1.2.4 (https://triapul.cz/automa/i_did_not_kill_stanley_lieber#keyboard))就足够了。 #### 2.1.2 paint(1) 不能为你做什么 (https://triapul.cz/automa/i_did_not_kill_stanley_lieber#cant_do_it) **无压感**:`paint(1)` 和 9front 总体上不支持它。目前还不支持。 **无图层,无剪切粘贴**:画即所得。这种限制以及可能的缓解方法在下面探讨(2.4 (https://triapul.cz/automa/i_did_not_kill_stanley_lieber#faux_layers))。你将受益于将 `paint(1)` 视为一张纸。 #### 2.1.3 paint(1) 按键 (https://triapul.cz/automa/i_did_not_kill_stanley_lieber#paint_keys) **保存你的图片**:`w - 写入文件` - 按 *w* 并输入你想要保存图片的文件名。下次你按 *w* 时,上次输入的文件名将已经显示出来。要重复写入同一个文件,只需按 *w* 和 *Enter*。经常这样做。 一旦你将图片保存到文件,你可以在 `page(1)` 中打开它,或对其执行其他图像操作。 **打开图片**:`r - 读取文件` - 按 *r* 并输入你想要打开或重新加载的图片文件名。与 *w* 一样,一旦你读取过一次文件,文件名将显示在提示符中。*r* 对于对当前绘制的文件执行外部图像操作,然后在 paint(1) 中重新加载修改后的文件很有用。 **变换**:`| - 通过管道将画布通过命令进行变换`。我唯一使用它的时候是与 `rotate(1)` 一起。 `` | rotate -u `` **重定向输入**:`< 命令` - 对文件执行某些操作并在 `paint(1)` 中读取它。这将替换画布上当前存在的任何内容。 打开文件 `glenda.pic` 并添加 50 像素的黑色边框 `` < crop -i -50 glenda.pic `` 打开文件 `glenda.pic`(与 *r* 相同,但不替换 w/r 提示符中的文件名) `` < cat glenda.pic `` **重定向输出**:`> 命令` - 对当前画布执行某些操作并将其写入文件。 给当前画布添加 50 像素的黑色边框,将其旋转 90 度并写入(保存)到文件 `modified_glenda.pic` `` > crop -i -50 | rotate -r 90 > modified_glenda.pic `` 制作当前文件的备份。这不会改变 *w* 中预先填写的文件名 `` > cat > backup_glenda.pic `` ### 2.2 画布 (https://triapul.cz/automa/i_did_not_kill_stanley_lieber#canvas) 在 `paint(1)` 的上下文中,“画布”一词被理解为包含你绘画的区域(一个矩形)。当你启动 `paint(1)` 时,你会看到一个白色窗口和一个工具栏。即使你无法分辨,你也可以向任何方向无限地平移那片无尽的白色。这就是空文件的样子。只有当你绘制(或擦除)了第一个像素后,画布才会被创建。 `paint(1)` 将最远放置的像素视为画布的边缘。它不在乎你的窗口有多大(擦除 pi

相似文章

Lil中的矢量图形

Hacker News Top

本文探讨了Lil脚本语言在二维矢量图形中的应用,解释了如何表示点、笔划和路径,以及如何使用Decker生态系统中的Hershey矢量字体来操作它们。

@geekbb: 一套让 AI 画出"对且好看"的 draw 架构图的框架加命令行工具。 靠真实 stencil 校验和自动布局,覆盖 AWS/Azure/GCP/Databricks/BPMN,专门治 AI 瞎编图形 ID 画出空白框的毛病。 https…

X AI KOLs Timeline

A framework and CLI tool that enables AI agents to generate structurally precise and aesthetically standardized draw.io diagrams for AWS, Azure, GCP, Databricks, and BPMN architectures, using real stencil validation and automatic layout to prevent hallucinated empty shapes.

Mojave Paint

Product Hunt

Mojave Paint 是一款用于在 Mac 平台上直接操作静态图像的工具。