{"size": 1503, "ext": "js", "max_stars_repo_path": "src/sketch.js", "max_stars_repo_name": "CodeMedium/p5-starter", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "src/sketch.js", "max_issues_repo_name": "CodeMedium/p5-starter", "max_issues_repo_issues_event_min_datetime": "2021-08-18T20:46:14.000Z", "max_issues_repo_issues_event_max_datetime": "2021-08-18T20:46:14.000Z", "max_forks_repo_path": "src/sketch.js", "max_forks_repo_name": "SemiGenerative/p5-starter", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": 1, "max_forks_count": null, "avg_line_length": 17.275862069, "max_line_length": 92, "alphanum_fraction": 0.5974717232}
/**
 * 21xxxx - 
 * By: Oz Ramos "Art See Clarke" @TheCodeMedium
 * https://codemedium.com
 * ---
 * Twitter: https://twitter.com/thecodemedium
 * Pinterest: https://www.pinterest.com/codemedium/
 * GitHub: https://github.com/codemedium
 * Ko-Fi: https://ko-fi.com/handsfreejs
 *---
 * (∩｀-´)⊃━☆ﾟ.*･｡ﾟ 		 "Any sufficiently advanced technology is indistinguishable from magic"
 * 		                    - Arthur C. Clarke
 *---
 */

/**
 * Sketch entry point
 */
function setup() {
  // Param args
  params = Object.assign({
    bg: '#00193c',
    // random(params.colors)
    colors: ['#ffffff', '#ff628c', '#FF9D00', '#fad000', '#2ca300', '#2EC4B6', '#5D37F0']
  }, getURLParams())

	createCanvas(windowWidth, windowHeight)
}

/**
 * Main draw loop
 */
function draw() {
}















/**
 * Handle keypressed across multiple files
 */
function keyPressed () {
  keypressFn.forEach(fn => fn())
}

/**
 * Split keypressed into multiple functions
 * - On my localhost I have another file to record the canvas into a video,
 *   but on OpenProcessing.org this file is not. Locally, the other file
 *   adds another function that starts recording if space is pressed
 * 
 * @see https://github.com/CodeMedium/subdivided-starships
 */
const keypressFn = [function () {
  switch (keyCode) {
    // Space
    case 32:
      break
    // 1
    case 49:
      break
    // 2
    case 50:
      break
    // 3
    case 51:
      break
    // 4
    case 52:
      break
    // 5
    case 53:
      break
  }
}]
