Over vacation, my nephew- a junior in high school at Charter School of Wilmington (Delaware)- improved the card with some new coding... Now the lights only decorate the tree, not the sky and the hills. He also added falling snow. Take a look-
As you may have heard, December 9-16 was Computer Science Week. BH-BL participated in the "Hour of Code" activity as our High School AP Computer Science students helped teacher Pauline White to introduce nearly 100 middle school students some of the basic elements of computer coding. I was intrigued and I decided to learn a bit of coding myself. I took the Intro to Computer Science lesson on Khan Academy and this was the result! I used JavaScript to create the picture and the message (when you click the picture). I am trying to get it to allow the user to decorate the tree with lights but I cannot yet figure out how to restrict the "mouseMoved" function to the tree alone! As a result you get pink lights everywhere! Hey- It's a start! Feel free to try to work on the code and help me out. I will keep at it!
My learning curve with coding makes the following video even more impressive. Watch it when you have a few minutes. It's a great connection between computer coding and the season we are celebrating. I hope each of you has a peaceful and relaxing time with your families. Merry Christmas, Happy Holidays, Happy New Year!!
//click to reveal message
var mouseClicked = function() {
fill(117, 11, 27);
var f = createFont("cursive", 33);
textFont(f, 46);
text("Season's Greetings", 27, 353);
textFont(f, 20);
text("to the BH-BL Family...All the Best in 2014!", 17, 387);};