@@ -29,10 +29,11 @@ function Button(x, y, width, text, f){
2929
3030function createGUI ( ) {
3131 buttons . push ( new Button ( 0 , 0 , 60 , "save" , function ( ) { createFinalImage ( ) ; } ) ) ;
32- buttons . push ( new Button ( 60 , 0 , 30 , "+" ,
32+ buttons . push ( new Button ( 800 - 170 , 0 , 110 , "line width" , function ( ) { } ) ) ;
33+ buttons . push ( new Button ( 800 - 60 , 0 , 30 , "+" ,
3334 function ( ) { lineWidth += 0.5 ; redraw ( ) ; }
3435 ) ) ;
35- buttons . push ( new Button ( 90 , 0 , 30 , "-" ,
36+ buttons . push ( new Button ( 800 - 30 , 0 , 30 , "-" ,
3637 function ( ) { lineWidth -= 0.5 ; if ( lineWidth < 0.5 ) lineWidth = 0.5 ; redraw ( ) ; }
3738 ) ) ;
3839}
@@ -41,7 +42,5 @@ function drawGUI(){
4142 for ( var i = 0 ; i < buttons . length ; ++ i ) {
4243 buttons [ i ] . draw ( ) ;
4344 }
44- ctx . fillText ( "are lines correct?: " + ( checkLines ( ) ?"yes" :"no" ) , 10 , canvasSize - 60 * canvasScale ) ;
45- ctx . fillText ( "(left click) edit mode: " + ( ( selectedCircle == - 1 && selectedLine == - 1 ) ?"no" :"yes" ) , 10 , canvasSize - 35 * canvasScale ) ;
46- ctx . fillText ( "(right click) will snap according to rules: " + ( snapMode ?"yes" :"no" ) , 10 , canvasSize - 10 * canvasScale ) ;
45+ ctx . fillText ( "are lines correct?: " + ( checkLines ( ) ?"yes" :"no" ) , 10 , canvasSize - 10 * canvasScale ) ;
4746}
0 commit comments