Ejemplos Ajustar la escala

Ajustar la escala

La función scale() ajusta la escala del sistema de coordenadas actual por el factor especificado.

La funciones push() y pop() guardan y restauran el sistema de coordenadas, respectivamente.

En este ejemplo, se dibuja un cuadrado de tamaño 200 en el origen con tres diferentes factores de escala.

Creative Commons BY-NC-SA license badge

Ajustar la escala: 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!