xxxxxxxxxx
11
// TranslateRotate (c) 2015, 2021 kouichi.matsuda@gmail.com
function setup() {
translate(width/2, height/2); // 描画領域の中央に平行移動
rotate(radians(30)); // 30°回転する
rect(-25, -25, 50, 50);
}
function draw(){
}
The p5.js Editor uses cookies. Some are essential to the website functionality and allow you to manage an account and preferences. Others are not essential—they are used for analytics and allow us to learn more about our community. We never sell this data or use it for advertising. You can decide which cookies you would like to allow, and learn more in our Privacy Policy.