What is Java? What is JavaScript?

Java is a programming language made by Sun Microsystems in 1995. Java uses range from laptops to game consoles to super computers and much more! Java allows you to play in browser games and apps.

JavaScript was made in 10 days by Brendan Eich in May 1995. JavaScript is a programming language mainly focused on making web pages interactive. JavaScript is often used in making polls and quizzes. Contrary to popular belief Java and JavaScript are to completely different programming languages and have no direct correlation.

Using Java

Today on Monday 4/27/15 we used Java for the first time. Java is mostly focused on putting out images and processing so the first thing we did was put a smiley face onto the screen. Here is the code I used and its output.

The next thing we did was make a ball bounce around the screen. I decided to make my "ball" and odd shape so it looks funny. We did this bye telling the object (in this case the ball) to bounce every time it hits the edge of the screen.

After that I decided it would be funny to make a random ellipse spawn over and over and to see what happened, here is the result. I did it with this simple code.

When running it would continuously spawn ellipses forever.

Today on 4/28/15 we made Ladybugs that spawn in and rotate to a random degree and on a random plane. This is the code that I used for this.

Next we worked on our bouncing ball code some more to make it more interesting.

We more balls and the ability for the balls to change colors as they moved around.

Today on 4/29/15 we did our first work in JavaScript. We took a previous code from our 'Java' and remade it in JavaScript.

Bouncing Boy

Made using: Khan Academy Computer Science.

One of the most notable changes is that you have to change every "int" (integer) into a "var" (variable) for the code to work.

P5.js

P5.js

Today on 4/30/15 we learned about P5.js, P5.js is run in JavaScript and is mainly focused on Processing and putting images on screen.

P5 template

Today we also made mothers day cards using Java and we implemented them into our web page. While doing this we learned about "createCanvas()" and how it is the JavaScript version of "size()" in Java.

Mothers Day

BezierCurves are another thing that we learned about today. BezierCurves are commonly used in vector graphs to make them look smoother. BezierCurves are used alot more than one might think, from everyday pictures and posters to texts and fonts on your T.V. and Computer.