Stile del testo

    

Per modificare impostare il testo in corsivo, grassetto o entrambi gli stili, può essere usata l’istruzione textStyle().

    function setup() {
    background( 220 );
    textStyle( ITALIC );  // imposta lo stile corsivo
    text( "Testo", 50,50 );
}
  

Oltre a ITALIC è possibile usare BOLD, BOLDITALIC e NORMAL (il valore predefinito).