2020-10-02から1日間の記事一覧

マウスでドラッグすると3D回転します

マウスでドラッグすると回転します { class CG { constructor (canvas, offset = new P2) { this.canvas = canvas; this.offset = offset; this.ctx = canvas.getContext ('2d'); canvas.width = canvas.clientWidth; canvas.height = canvas.clientHeight; …