See the bottom of this topic for more links to rule examples.
NOTE:
Depending on fast and how often you want the light to change it may be best to control that part with a separate device. I say this b/c using rules in OH is limited to 10 threads if your on version 2.5.