Skip to content

Instantly share code, notes, and snippets.

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>AP Physics 2: Perfect Circuit Loop</title>
<script src="https://cdnjs.cloudflare.com/ajax/libs/p5.js/1.4.0/p5.js"></script>
<style>
body { margin: 0; background: #0a0a0a; color: #e0e0e0; font-family: 'Segoe UI', sans-serif; display: flex; flex-direction: column; align-items: center; }
#controls { background: #1a1a1a; padding: 25px; border-bottom: 3px solid #333; width: 100%; display: flex; justify-content: center; gap: 60px; box-shadow: 0 4px 15px rgba(0,0,0,0.6); }
.stat { color: #00ffcc; font-weight: bold; font-family: monospace; font-size: 1.3em; text-shadow: 0 0 10px rgba(0,255,204,0.3); }