Implemented linear scaling color + refactoring