= #JxnPortable\docs\plot_examples\demos\TextPainter_setBackground_Demo.jxn

pf = plot( cos 2 PI t, sin 2 PI t, BLACK, 0, 2., 0. )
pf.setFont( @Font( "", 0, 26 ) ) 
pf.add( @JxnTextPainter( "abc", -0.7,  0.7 ) )  ! default: black on white background
pf.add( @JxnTextPainter( "def",  0.7,  0.7, B ).setBackground() )  ! no background
pf.add( @JxnTextPainter( "ghi", -0.7, -0.7, R ).setBackground( @Color( 1., 1., 1., 0.875 ) ) )
!                                                     ! white background with alpha (opaqueness)
pf.add( @JxnTextPainter( "jkl",  0.7, -0.7, @Color( 0., 0.5, 0. ) ).setBackground( Color.pink ) )  ! pink background