Submitted 10 days ago
Blog Preview Card w/ Random BG Color Generator - HTML, CSS, JS
@Dpal88
Design comparison
SolutionDesign
Solution retrospective
What challenges did you encounter, and how did you overcome them?
It took me a while to figure how to get the complimentary color of the random color that was generated, but eventually I came up with a solution to store each rgb (red, green, and blue) value into an array. Then from there I took each rgb value and subtracted it from 255, which gave me the complimentary color.
What specific areas of your project would you like help with?If you have any suggestions on how I can improve my code, feel free to leave me a comment!
Community feedback
Please log in to post a comment
Log in with GitHubJoin our Discord community
Join thousands of Frontend Mentor community members taking the challenges, sharing resources, helping each other, and chatting about all things front-end!
Join our Discord