sunrise/sunset line

how to achieve something like this?


is it just a rectangle where it's calculated the time from 00:00 to sunrise and sunrise-sunset and then from sunset to 00:00 again and then filling each minutes in percentages with it's own color?
or do you have another neat solution?

  • What I would do:

    Calculate all times to seconds (sunrise to seconds, sunset to seconds of day) (or minutes…)
    1) draw a filled rectangle for the whole day in blue. X=0, Width=86.400 sec or 1.440 minutes (24h)
    2) draw a second filled rectangle in yellow over the blue one, starting X=sunrise, Width=sunset-sunrise

    (of course all X coordinates in relation to the width of the blue rectangle in pixels on the watch)

  • For glances in general, what you see in the screen shot won't be the same on all devices.  The width v height can vary, the number of lines using something like FONT_GLANCE can vary, and some devices like the fr55 only have 8 colors and the instinct2, only black and white.

    Also, with CIQ, the icon is always the launcher icon for the app and you can't change it.