js/bonus.js
/**
 * modifies the arc arrow to point at the correct wash frequency
 * @param {arrow} arrow the arrow html object
 * @param {number} wfreq the wash frequency
 */
modifies the arc arrow to point at the correct wash frequency
@param {arrow} arrow the arrow html object
@param {number} wfreq the wash frequency
modifies the arc arrow to point at the correct wash frequency @param { arrow } arrow the arrow html object @param { number } wfreq the wash frequency
function modifyArcArrow(arrow, wfreq) {
	var radians = archIndexToRadians(wfreq);
	var M = `M${160 * Math.sin(radians)},${160 * Math.cos(radians)}`;
	var A = `A${150},${0} ${0} ${0},${0} ${0},${0}`;
	var L = `L${0},${0}`;
	arrow.select("path").attr("d", `${M}${A}${L}${A}Z`);
}
function modifyArcArrow ( arrow , wfreq ) { var radians = archIndexToRadians ( wfreq ) ; var M = ` ${ 160 * Math . sin ( radians ) } ${ 160 * Math . cos ( radians ) } ` ; var A = ` ${ 150 } ${ 0 } ${ 0 } ${ 0 } ${ 0 } ${ 0 } ${ 0 } ` ; var L = ` ${ 0 } ${ 0 } ` ; arrow . select ( "path" ) . attr ( "d" , ` ${ M } ${ A } ${ L } ${ A } ` ) ; }
modifies the arc arrow to point at the correct wash frequency
 @param {arrow} arrow the arrow html object
 @param {number} wfreq the wash frequency
modifies the arc arrow to point at the correct wash frequency @param { arrow } arrow the arrow html object @param { number } wfreq the wash frequency
// set the m, a, and l values to modify an arrow
 // add in the modified arrow
