Posts

Showing posts from April, 2024

Create Basic Astronomy Simulation - Halley's Comet

Image
 Kids Activity - Create Halley's Comet stimulation using Chat GPT It is easy to create basic simulation using Chat GPT by giving  prompt .Below is example of sample prompt "create java script code to create Halley's comet such that it is orbiting Sun. Also show distance in number" User can create more creative prompt Below is JavaScript code which created above graphical simulation (just copy past in note pad and save file as html and then open in browser) <!DOCTYPE html> <html lang="en"> <head>   <meta charset="UTF-8">   <meta name="viewport" content="width=device-width, initial-scale=1.0">   <style>     canvas {       border: 1px solid #000;       display: block;       margin: 20px auto;     }   </style>   <title>Comet Animation</title> </head> <body>   <canvas id="solarSystemCanvas" width="800" height="800">...