rewriting of testable webworker: spectroDrawing