A running record of all interactions and code development for the "Learning Computer Science with Copilot" course.
I am teaching a 'Discover Week' class on 'Learning Computer Science with Copilot' to students who have not seen any CS before. I am using HTML/CSS/Bootstrap5 and p5js. The primary focus will be JavaScript. I'm thinking of an app where I introduce the course like movie credits from the 1978 movie Superman, and the students names appear large in the canvas and then shrink and fade into the background as if they are stars of the show. I'd like to be able to teach this in about 5 hours. Can you create a shell for the project to get started called movieCreditsSim0.html. Let's use a canvas that is 800 by 600 and use HSB color mode throughout. I need lots of documentation. I'll also want to keep a running log of our interactions in a 'chatLog' where I can see my requests and your responses with pertinent code fragments. Let's start that too as chatLog0.html
movieCreditsSim0.html - Main project filechatLog0.html - This chat log fileProject Structure Overview:
Main Code Structure:
// GLOBAL VARIABLES
let studentNames = ["STUDENT 1", "STUDENT 2", ...];
let credits = []; // Holds credit objects
let starfield = []; // Holds background stars
function setup() {
// Runs once at start
createCanvas(800, 600);
colorMode(HSB, 360, 100, 100, 100);
createStarfield();
initializeCredits();
}
function draw() {
// Runs continuously (60 fps)
drawBackground();
// Update and display each credit
}
Animation Features Implemented:
HSB (Hue, Saturation, Brightness) is configured as:
colorMode(HSB, 360, 100, 100, 100);
Teaching Approach for 5-Hour Course:
File Ready to Use: Open movieCreditsSim0.html in a web browser to see the animation in action!