This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Main { | |
public static void test(int roadRunner, int coyote, int edge) { | |
System.out.println("Roadrunner Position: " + roadRunner + "; Coyote Position: " + coyote + "; edge: " + edge + ";"); | |
System.out.println(); | |
if (!(roadRunner < edge)) { | |
System.out.println("Roadrunner did not run."); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var canvas = document.getElementById("canvas"); | |
var infoLabel = document.getElementById("text"); | |
//Array of existing images | |
var images = []; | |
//How many images have loaded | |
var imagesLoaded = 0; | |
//Color stop used for creating gradients | |
var colorStop = function(location, color) { | |
this.location = location; | |
this.color = color; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// JavaScript File | |
var Canvas = document.getElementById("canvas"); | |
var label = document.getElementById("text"); | |
function componentToHex(c) { | |
var hex = c.toString(16); | |
return hex.length == 1 ? "0" + hex : hex; | |
} | |
function rgbToHex(r, g, b) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// JavaScript File | |
var Canvas = document.getElementById("canvas"); | |
var label = document.getElementById("text"); | |
function componentToHex(c) { | |
var hex = c.toString(16); | |
return hex.length == 1 ? "0" + hex : hex; | |
} | |
function rgbToHex(r, g, b) { |