How to make a rotating object (sphere, window, etc.) Using only canvas

I would like to make a rotating object (sphere, field, etc.) using only canvas. But I can not find the textbook . Help If you have seen or explained how to do this somewhere.

Like this example , only without any effects

+3
source share
2 answers

I hope you enjoy the math. 3D effects can always be achieved on a 2D plane if you want to write code.

Some resources that are likely to help:

Introduction to Computer Graphics

and for help in math,

Book on linear algebra

+1

, . , , , , . , . png .

, canvas pajamas, , python, js, .

http://pyjs.org/examples/gwtcanvas/output/GWTCanvasDemo.html

NB, borken, , git pull.

-1

Source: https://habr.com/ru/post/1778496/


All Articles