vis_files/button.js
/// Draws the corners of the main page
Draws the corners of the main page
Draws the corners of the main page
function drawlowerbar(x,y,dx,dy,r,col) 
{
	fillrect(x,y,dx,dy,"#a4a3e6");
	centertext("© BEEPmbp 2021",x+dx/2,y+18,"bold 16px arial",WHITE);   
	var th, i, nth = Math.floor(r/3);
	if(nth < 1) nth = 1;
	cv.lineWidth = 2;
	cv.beginPath();
	cv.fillStyle = col; 
	cv.moveTo(x+dx,y+dy);
	for(i = 0; i <= nth; i++){
		th = i*Math.PI/(2*nth);
		cv.lineTo(x+dx-r+r*Math.cos(th),y+dy-r+r*Math.sin(th));
	}
	cv.closePath();
	cv.fill();
	cv.moveTo(x,y+dy);
	for(i = 0; i <= nth; i++){
		th = i*Math.PI/(2*nth);
		cv.lineTo(x+r-r*Math.sin(th),y+dy-r+r*Math.cos(th));
	}
	cv.closePath();
	cv.fill();	
}
function drawlowerbar ( x , y , dx , dy , r , col ) { fillrect ( x , y , dx , dy , "#a4a3e6" ) ; centertext ( "© BEEPmbp 2021", x + d x/ 2 , y + 1 8, " bold 16px arial", W HITE) ; var th , i , nth = Math . floor ( r / 3 ) ; if ( nth < 1 ) nth = 1 ; cv . lineWidth = 2 ; cv . beginPath ( ) ; cv . fillStyle = col ; cv . moveTo ( x + dx , y + dy ) ; for ( i = 0 ; i <= nth ; i ++ ) { th = i * Math . PI / ( 2 * nth ) ; cv . lineTo ( x + dx - r + r * Math . cos ( th ) , y + dy - r + r * Math . sin ( th ) ) ; } cv . closePath ( ) ; cv . fill ( ) ; cv . moveTo ( x , y + dy ) ; for ( i = 0 ; i <= nth ; i ++ ) { th = i * Math . PI / ( 2 * nth ) ; cv . lineTo ( x + r - r * Math . sin ( th ) , y + dy - r + r * Math . cos ( th ) ) ; } cv . closePath ( ) ; cv . fill ( ) ; }
Draws the corners of the main page
Draws the corners of the main page