draw gradient background according to current time