This is a colour scheme generator optimized for mobile devices.
🟥 🟧 🟨 🟩 🟦 🟪 🟫
- The colours are randomly generated through a function that generates random hex codes, and not from a pre-defined array.
- The user can generate a random combination of colours either by refreshing the page or by using the
refresh
button bottom left. - Each colour can be changed individually, by taping (on mobile) or clicking (on desktop) the desired colour box.
- If the user wants to save a combination, they can press the button bottom right to copy the hex codes to the clipboard. For this function, I have used the Clipboard API.
- (01sep21) The number of colours has increased to 6.
- Shake device for random colour set. Additional script used for this found here.
- The application has been tested in Firefox, Chrome and Safari.
- The
shake
function works so far in Android, but it seems not to be working in iOS. More testing needs to be done as to why this is the case.