Skip to content

Instantly share code, notes, and snippets.

@elct9620
Created May 12, 2017 09:47
Show Gist options
  • Save elct9620/a08a7096b2ae3d0e8dc586003507e9bc to your computer and use it in GitHub Desktop.
Save elct9620/a08a7096b2ae3d0e8dc586003507e9bc to your computer and use it in GitHub Desktop.
pushMatrix(); // 儲存修改
rotate(PI / 4); // rad = PI / 4 = 45deg (把角度換算成弧度)
ellipse(width / 2, height / 2, 100, 50); // 繪製一個橢圓(在畫面中央)
popMatrix(); // 套用修改
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment