From 39306cd1449483f8a6043eac96c5e6f0034375bd Mon Sep 17 00:00:00 2001 From: wizardforcel <562826179@qq.com> Date: Sun, 13 May 2018 11:34:04 +0800 Subject: [PATCH] 19. --- 19.md | 220 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 220 insertions(+) create mode 100644 19.md diff --git a/19.md b/19.md new file mode 100644 index 0000000..a035f15 --- /dev/null +++ b/19.md @@ -0,0 +1,220 @@ +# 十九、项目:像素艺术编辑器 + +> I look at the many colors before me. I look at my blank canvas. Then, I try to apply colors like words that shape poems, like notes that shape music. +> +> Joan Miro + +![]() + +前面几章的内容为您提供了构建基本的 Web 应用所需的所有元素。 在本章中,我们将实现一个。 + +我们的应用将是像素绘图程序,您可以通过操纵放大视图(正方形彩色网格),来逐像素修改图像。 您可以使用它来打开图像文件,用鼠标或其他指针设备在它们上面涂画并保存。 这是它的样子: + +![]() + +在电脑上绘画很棒。 你不需要担心材料,技能或天赋。 你只需要开始涂画。 + +## 组件 + +应用的界面在顶部显示大的``元素,在它下面有许多表单字段。 用户通过从`