Buggy code:
public class StartingGameInfoView { public static Scene startingGameInfoView ; public static Canvas canvas = new Canvas ( Main . getPrimaryStage ( ) . getWidth ( ) , ( ( Main . getPrimaryStage ( ) . getHeight ( ) ) - 30 ) ) ; public static GraphicsContext gc = StartingGameInfoView . canvas . getGraphicsContext2D ( ) ; public static int x = 0 ; private static Timer timer = new Timer ( ) ; public static void createStartingGameInfoView ( ) { } public static void scrollText ( ) { double height = Main . getPrimaryStage ( ) . getHeight ( ) ; double width = Main . getPrimaryStage ( ) . getWidth ( ) ; StartingGameInfoView . gc . setFill ( Color . YELLOW ) ; StartingGameInfoView . gc . setFont ( new Font ( 20 ) ) ; ( StartingGameInfoView . x ) ++ ; <START_BUG> StartingGameInfoView . gc . clearRect ( 0 , ( ( height - ( StartingGameInfoView . x ) ) - 10 ) , width , 500 ) ; <END_BUG> StartingGameInfoView . gc . setTextAlign ( TextAlignment . CENTER ) ; StartingGameInfoView . gc . fillText ( ( "Welcome<seq2seq4repair_space>to<seq2seq4repair_space>Oregon<seq2seq4repair_space>Trail<seq2seq4repair_space>Remade!\n" + ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( "The<seq2seq4repair_space>Oregon<seq2seq4repair_space>Trail<seq2seq4repair_space>is<seq2seq4repair_space>a<seq2seq4repair_space>2,200-mile\n" + "historic<seq2seq4repair_space>east–west<seq2seq4repair_space>large-wheeled\n" ) + "wagon<seq2seq4repair_space>route<seq2seq4repair_space>and<seq2seq4repair_space>emigrant<seq2seq4repair_space>trail<seq2seq4repair_space>that\n" ) + "connected<seq2seq4repair_space>the<seq2seq4repair_space>Missouri<seq2seq4repair_space>River<seq2seq4repair_space>to<seq2seq4repair_space>valleys\n" ) + "in<seq2seq4repair_space>Oregon.<seq2seq4repair_space>\n" ) + "This<seq2seq4repair_space>game<seq2seq4repair_space>was<seq2seq4repair_space>created<seq2seq4repair_space>in<seq2seq4repair_space>the<seq2seq4repair_space>trails\n" ) + "memory.<seq2seq4repair_space>The<seq2seq4repair_space>trail<seq2seq4repair_space>is<seq2seq4repair_space>a<seq2seq4repair_space>long<seq2seq4repair_space>and\n" ) + "treacherous<seq2seq4repair_space>one<seq2seq4repair_space>and<seq2seq4repair_space>for<seq2seq4repair_space>some<seq2seq4repair_space>reason\n" ) + "you<seq2seq4repair_space>decided<seq2seq4repair_space>the<seq2seq4repair_space>\"Grass<seq2seq4repair_space>is<seq2seq4repair_space>greener\n" ) + "on<seq2seq4repair_space>the<seq2seq4repair_space>other<seq2seq4repair_space>side.\"<seq2seq4repair_space>You<seq2seq4repair_space>also<seq2seq4repair_space>decided\n" ) + "to<seq2seq4repair_space>take<seq2seq4repair_space>your<seq2seq4repair_space>spouse<seq2seq4repair_space>and<seq2seq4repair_space>three<seq2seq4repair_space>children\n" ) + "with<seq2seq4repair_space>you(Man<seq2seq4repair_space>you\'re<seq2seq4repair_space>smart...).<seq2seq4repair_space>Make<seq2seq4repair_space>sure\n" ) + "to<seq2seq4repair_space>plan<seq2seq4repair_space>accordingly<seq2seq4repair_space>and<seq2seq4repair_space>make<seq2seq4repair_space>smart\n" ) + "decisions<seq2seq4repair_space>throughout<seq2seq4repair_space>the<seq2seq4repair_space>trail<seq2seq4repair_space>or\n" ) + "it<seq2seq4repair_space>might<seq2seq4repair_space>end<seq2seq4repair_space>up<seq2seq4repair_space>costing<seq2seq4repair_space>you<seq2seq4repair_space>or<seq2seq4repair_space>your\n" ) + "families<seq2seq4repair_space>life.\n" ) + "Anyways....I<seq2seq4repair_space>hope<seq2seq4repair_space>you<seq2seq4repair_space>enjoy<seq2seq4repair_space>the<seq2seq4repair_space>game\n" ) + "and<seq2seq4repair_space>good<seq2seq4repair_space>luck<seq2seq4repair_space>;)\n" ) ) , ( width // 2 ) , ( ( height + 10 ) - ( StartingGameInfoView . x ) ) ) ; if ( ( ( height + 30 ) - ( StartingGameInfoView . x ) ) <= ( - 450 ) ) { StartingGameInfoView . gc . fillText ( "---Press<seq2seq4repair_space>any<seq2seq4repair_space>button<seq2seq4repair_space>to<seq2seq4repair_space>continue---" , ( width // 2 ) , ( height - ( height // 2 ) ) ) ; StartingGameInfoView . timer . cancel ( ) ; } } public static void setStartingGameInfoView ( Scene scene ) { } public static Scene getStartingGameInfoView ( ) { } }

Fix:
StartingGameInfoView . gc . clearRect ( 0 , ( ( height - ( StartingGameInfoView . x ) ) - 10 ) , width , 510 ) ;