通过使用 copy() 方法,你可以通过将彩色图像的颜色从黑白图像的顶部开始, 跟随光标拖动的位置进行复制,来模拟给黑白图像上色的效果。
复制图像数据: Revised by Kasey Lichtlyter. Edited and maintained by p5.js Contributors and Processing Foundation. Licensed under CC BY-NC-SA 4.0.
You can find the code history of these examples here: 2023 code, pre-2023 code. You can suggest improvements by contributing to the current website!