Refactor code
Refactor code
Add support for offset, two color gradient mode