From Knitting Fresh Brioche* by Nancy Marchant.
Use a circular needle or a pair of double-pointed needles. Slide after working odd-numbered rows with color A. Turn after working even-numbered rows with color B.
*Affiliate link. Buy the book and I get a couple pennies.
Shown with a cast-on count of 35 stitches.