Thread
:
Weather temperature as colour
View Single Post
velox
2018-09-05 , 07:06
Posts: 394 | Thanked: 1,341 times | Joined on Dec 2009
#
14
@pichlo: Yup, you identified the main problem spot on, I just had the time to write a quick fix. I've edited my previous reply.
@all: Nice thinking, guys. I really enjoy seeing people chime in with own ideas, even for a seemingly minor problem.
HSL is a great way to get changing color values almost automatically, on the other hand the model is a great way to implement previously defined values.
If john_gods approach isn't complicated enough, one could even add interpolation between the predefined values to it with some minor additional computations. For hex strings, one could easily use something like
https://gist.github.com/rosszurowski...65c424a9bc0dae
edit: perhaps the interpolation one works a bit less cumbersome without a model, but "directly" from an array.
__________________
slumber
: sensors enabled sleep timer for SFOS (translations/input/… appreciated if you've got some spare time)
talefish
: directory based audiobook player for SFOS
nofono
: ofono restart for SFOS
___
list of i486/noarch packages on openrepos (jolla tablet)
Quote & Reply
|
The Following 4 Users Say Thank You to velox For This Useful Post:
Amboss
,
Markkyboy
,
mosen
,
pichlo
velox
View Public Profile
Send a private message to velox
Find all posts by velox