What you describe is more or less what I am doing today. If you look at the second pattern it calls heavily Math.sin (3 times per pixel). For a low number of pixels it is probably not an issue, but for about 250 pixels (=750 calls per refresh) it makes a difference.
Also this so called quadrature oscillator can come handy for other uses as well.
© Espruino, powered by microcosm.
Report a problem