Roken
Posts: 213
Joined: Sun Dec 31, 2017 4:35 pm

Colour cycling

Sat Jun 02, 2018 9:11 am

html and js are not really my forte. I've grabbed an HTML clock from https://github.com/carli2/raspberry-projects (kudos to the creator, BTW), which is working well on my Pi with a 5" touchscreen.

I know where it gets the colour from, but I'd like to cycle the colour (not a hard cut, but fade through). The html uses the refresh function, and so timing is implicit, but how do a colour fade through the spectrum?
Headless PI. OMG, someone cut it's head off. Oh, hang on. it didn't have one to start with.


Roken
Posts: 213
Joined: Sun Dec 31, 2017 4:35 pm

Re: Colour cycling

Sat Jun 09, 2018 12:24 pm

Sorry it's taken a few days to come back. The links provided me a code snippet that allowed me to modify the clock, and now it colour cycles as desired.

Thank you.
Headless PI. OMG, someone cut it's head off. Oh, hang on. it didn't have one to start with.

Return to “General programming discussion”

Who is online

Users browsing this forum: No registered users and 3 guests