(1) square
(2) shifted and scaled to 0-1 range
(3) phase shifted
(4) duty ration * 2
(5) duty-cycled wave in the 0-1 range
(6) final output
50
%
start
stop drawing
start drawing