Learn how to generate random nos : large_random_number = random.randint(1000000000, 9999999999) # Extract the middle 4 digits middle_digits = (large_random_number // 1000) % 10000 # Square the middle 4 digits random_number = middle_digits ** 2 return random_number
Name of video
Sun Position relative to earth. RIght is east. Phone or laptop pointing North.
Scroll the canvas on mobile!
const now = new Date();
const hours = now.getHours()%12 -6; // Adjust for 12-hour clock
const minutes =now.getMinutes();
const timeAngle = (hours + minutes / 60) * 15 * (Math.PI / 180); // 30 degrees per hour
const sunX = centerX + orbitRadius * Math.cos(timeAngle);
const sunY = centerY - orbitRadius * Math.sin(timeAngle); // Inverted y-axis on canvas
Wix calculators were paid unlike ai coded embedded code and thus this 2018 formula was done in MIT app inventor app which didn't get used. This is just recreational as I don't know a practising medical doctor who used it.