実例 グラフィックスの作成

グラフィックスの作成

createGraphics() 関数を使用して新しいp5.Graphicsオブジェクトを作成できます。これはキャンバス内のオフスクリーングラフィックスバッファとして機能します。オフスクリーンバッファは、現在の表示面とは異なる寸法や特性を持つことができますが、同じ空間に存在しているように見えます。

Creative Commons BY-NC-SA license badge

グラフィックスの作成: Revised by Caleb Foss. 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: pre-2023 example, 2023 code. You can suggest improvements by contributing to the current website!