The B major arpeggio uses 3 notes from the B major scale. The first note B, the third note D#, and the fifth note F#. These same 3 notes create the B major chord or triad when played in unison.
The red dots of the diagram represent the root notes.
These diagrams break the B Major Arpeggio down into 5 patterns.