実例 スケール

スケール

scale() 関数は、指定された係数で現在の座標系をスケーリングします。

push()pop() 関数は、それぞれ座標系を保存および復元します。

この例では、原点にサイズ200の四角形が描画され、3つの異なるスケーリング係数が適用されています。

Creative Commons BY-NC-SA license badge

スケール: Revised by Darren Kessner. 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!