How html5 uses canvas to rearrange solar system effects
This article is about how html5 uses canvases to rearrange the effects of the solar system. The editor thinks it is very practical, so share it with you as a reference and follow the editor to have a look.
Planet variable name rotation cycle light color dark
Mercury 87.70#a69697#5c3e40
Venus 224.701.70#c4bbac#1f1315
Earth Earth 365.2422#78b1e8#050c12
Mars 686.98#cec9b6#76422d
Jupiter 4332.589#c0a48e#322
Saturn 10759.95#f7f9e3#5c4553
Uranus 30799.095#a7e115#19243a
Neptune 60152.95#0661b2#1E3b73
The code is as follows:
Varcanvas=document.getElementById ("canvas"); varcxt=canvas.getContext ("2d"); function DrawTrack () {for (vari=0;i)