// println -> print // print to console // https://processing.org/reference/println_.html // https://p5js.org/reference/#/p5/print /* https://vimeo.com/channels/learningp5js/139587730 */ function setup() { // var angle = degrees(PI/2); // print(angle); var km = milesToKm(26.3); print(km); var km2 = milesToKm(100); print(km2); // print(milesToKm(90)); } function milesToKm(miles) { var km = miles * 1.6; return km; }