如何在 p5.js 中获取特定颜色分量
How to get particular component of color in p5.js
从 p5 docs 看来,似乎有设置颜色分量的方法,但是 none 无法获取它们。
给定一个 class p5.Color 的对象,我如何获得该颜色的红色分量?
您可以使用 red()
、blue()
和 green()
函数。
可以在 the reference 中找到更多信息。
从 p5 docs 看来,似乎有设置颜色分量的方法,但是 none 无法获取它们。
给定一个 class p5.Color 的对象,我如何获得该颜色的红色分量?
您可以使用 red()
、blue()
和 green()
函数。
可以在 the reference 中找到更多信息。