リファレンス clearColors()

clearColors()

ジオメトリの内部カラーを削除します。

p5.Geometryオブジェクトは、頂点や形状全体に割り当てられた 「内部カラー」で作成できます。ジオメトリに内部カラーがある場合、 fill()は効果がありません。 myGeometry.clearColors()を呼び出すことで、 fill()関数がジオメトリに色を適用できるようになります。

実例

This page is generated from the comments in src/webgl/p5.Geometry.js . Please feel free to edit it and submit a pull request!

関連するリファレンス