drawSkeleton(mlpose = this) 
	{
	  
	  mlpose.ctx.strokeStyle = 'rgb(255, 0, 0)';
	  mlpose.ctx.lineWidth = 2;
		
	  // Loop through all the skeletons detected
	  for (let i = 0; i < mlpose.poses.length; i++) {
		let skeleton = mlpose.poses[i].skeleton;
		// For every skeleton, loop through all body connections
		for (let j = 0; j < skeleton.length; j++) {
		  let partA = skeleton[j][0];
		  let partB = skeleton[j][1];
		  mlpose.ctx.beginPath();
		  mlpose.ctx.moveTo(partA.position.x, partA.position.y)
		  mlpose.ctx.lineTo(partB.position.x, partB.position.y);
		  mlpose.ctx.stroke();
		}
	  }
	}
/* 
    * A function to draw the skeletons
	* @mlpose: MlBody object is passed to the method
    */
A function to draw the skeletons
@mlpose: MlBody object is passed to the method
A function to draw the skeletons @mlpose : MlBody object is passed to the method
drawSkeleton(mlpose = this) 
	{
	  mlpose.ctx.strokeStyle = 'rgb(255, 0, 0)';
	  mlpose.ctx.lineWidth = 2;
	  for (let i = 0; i < mlpose.poses.length; i++) {
		let skeleton = mlpose.poses[i].skeleton;
		for (let j = 0; j < skeleton.length; j++) {
		  let partA = skeleton[j][0];
		  let partB = skeleton[j][1];
		  mlpose.ctx.beginPath();
		  mlpose.ctx.moveTo(partA.position.x, partA.position.y)
		  mlpose.ctx.lineTo(partB.position.x, partB.position.y);
		  mlpose.ctx.stroke();
		}
	  }
	}
drawSkeleton ( mlpose = this ) { mlpose . ctx . strokeStyle = 'rgb(255, 0, 0)' ; mlpose . ctx . lineWidth = 2 ; for ( let i = 0 ; i < mlpose . poses . length ; i ++ ) { let skeleton = mlpose . poses [ i ] . skeleton ; for ( let j = 0 ; j < skeleton . length ; j ++ ) { let partA = skeleton [ j ] [ 0 ] ; let partB = skeleton [ j ] [ 1 ] ; mlpose . ctx . beginPath ( ) ; mlpose . ctx . moveTo ( partA . position . x , partA . position . y ) mlpose . ctx . lineTo ( partB . position . x , partB . position . y ) ; mlpose . ctx . stroke ( ) ; } } }
A function to draw the skeletons
 @mlpose: MlBody object is passed to the method
A function to draw the skeletons @mlpose : MlBody object is passed to the method
// Loop through all the skeletons detected // For every skeleton, loop through all body connections