# Strobe Light Generator by [kirupa](https://www.kirupa.com/me/index.htm) | filed under [Coding Exercises](https://www.kirupa.com/codingexercises/index.htm) Conventional wisdom is that lighting should be tasteful and a backdrop to the real things that one wants to do. Strobe lights scoff at conventional wisdom with every lumen that they exhibit. In this coding exercise, your task will be to create a strobe light generator similar to the one below: When the page loads, this generic strobe light will continuosly change to a random color. Seems straightforward, right? Onwards! ## The Strobe Light Now, you can totally create the actual strobe light visual yourself. If you want to save time and be consistent with what I did, feel free to use the following SVG: ```markup ``` This SVG is part of Twitter's awesome [Twemoji set](https://twemoji.twitter.com/). ## Starting Point Now, the easiest way to get started is to fork the following Codepen pen and start making your modifications: See the Pen [ Coding Exercises Start](https://codepen.io/kirupa/pen/qBYxQpr) by Kirupa Chinnathambi ([@kirupa](https://codepen.io/kirupa)) on [CodePen](https://codepen.io). You may want to open the pen [in a new window](https://codepen.io/kirupa/pen/qBYxQpr) if you want more space to work. If you prefer developing locally in your favorite code editor (like Visual Studio Code), create a new HTML document and copy/paste the following boilerplate/starting content into it: ```js Coding Exercises Start ``` The HTML you see here is just the bare minimum content needed to help us get our web page up and running. The rest of the content is what you will add entirely on your own! #### Hint: Some Learning Resources The following tutorial may provide some helpful tips and techniques to help you with this exercise: [Using CSS Custom Properties (Variables) with JS](https://www.kirupa.com/html5/css_variables_js_win.htm), [Generating Random Colors](https://www.kirupa.com/html5/generating_random_colors.htm), [Animating with requestAnimationFrame](https://www.kirupa.com/html5/animating_with_requestAnimationFrame.htm) ## Getting Your Badge Once you have completed this challenge, you have earned the awesome bragworthy privilege of adding the following badge to [your collection](https://forum.kirupa.com/badges/): ![](../codingexercises/images/strobelight.png) To claim it, head over to the forums and respond in the [Strobe Light Generator topic](https://forum.kirupa.com/t/creating-a-strobe-light-generator/352252). **Be sure to include a link to your solution or insert a copy of your HTML/CSS/JS in the body of the message:** ![](../codingexercises/images/create_forum_topic.png) Once you have created your topic, Kirupa will give you a virtual high-five and ensure this badge is added to your list of assigned badges. ## Stuck? Need Help? We want to make this a fun learning activity. If you are stuck and need help, please [ask on the forums](https://forum.kirupa.com). Please explain your problem in detail and one of the many helpful forum members will help you out.