preliminary implementation of square and sawtooth waves for movingobjects gradient feature