Dynamic hour coloring

I am trying to highlight different time periods on the scheduler day and week view. I’ve seen samples/02_customization/03_hours_coloring.html which changes the background image of each day. That will work for a static set of periods, however in my scenario the periods are dynamic; depending on who the user is and what date is being shown. Is there a method to color the individual hours?

In day and week view - whole day is represented by the single html container, so there is no way to define custom styles for separate time spans.

You can consider usage of timeline view, in such view each cell can have separate styling.