Archive for April 2015

In Class Canvas Code

<html> <head> <script> window.onload = function() { var button = document.getElementById(“submit”); button.onclick = drawShapes; } function drawShapes(){ var canvas = document.getElementById(“tshirtCanvas”); var context = canvas.getContext(“2d”); var selectObj = document.getElementById(“backgroundColor”); var index = selectObj.selectedIndex; var bgColor = selectObj[index].value; var selectObj =…Continue Reading →

Graphics Py File

http://mcsp.wartburg.edu/zelle/python/   http://www.tech-recipes.com/rx/2621/os_x_change_path_environment_variable/   from graphics import * def main(): win = GraphWin(“Click Me!”) for i in range(10): p = win.getMouse() print(“You clicked at: “, p.getX(), p.getY()) main()

Week 11: Publishing

Week 10 Materials 1. Slides – Managing+Schedules 2. Sample Software Development MS Project File – 01018453 3. Using Microsoft Project for Student Games – http://www.gamasutra.com/blogs/StephenNorthcut/20130226/187393/Using_Microsoft_Project_for_Student_Games.php 4. List of Free Agile Planning Tools (MS Project Alternative) – http://www.agile-tools.net/ Week 11 Materials 1. Slides – Publishing

In Class Code – 4/7/15

<html> <head> <script> window.onload = function() { var button = document.getElementById(“submit”); button.onclick = drawShapes; } function drawShapes(){ var canvas = document.getElementById(“tshirtCanvas”); var context = canvas.getContext(“2d”); var selectObj = document.getElementById(“backgroundColor”); var index = selectObj.selectedIndex; var bgColor = selectObj[index].value; var selectObj =…Continue Reading →

Week 11: Canvas

1. Slides – Getting+Started+with+Canvas (3) 2. 2D Context API – http://www.w3.org/TR/2dcontext2/ 3. Today we’ll build a simple abstract art generator that uses random colors, coordinates and sizes to build a “modern art” piece out of squares and circles. The code will be posted…Continue Reading →

Week 10: JSON and Web Services

1. What happened to XML? – http://www.w3schools.com/xml/xml_whatis.asp 2. Understanding JSON notation – http://www.json.org/ 3. Replacement Assignment Working from the example code below, create a simple application to take and display information from a web services API. Your application should demonstrate an understanding…Continue Reading →