PebbleOS
Loading...
Searching...
No Matches
Macros | Functions

Collapse the screen to a dot, or expand a dot into the new screen. More...

Macros

#define STATIC_DOT_ANIMATION_DURATION_MS   233
 Duration of the static dot transitions, in milliseconds.
 
#define DOT_ANIMATION_STROKE_WIDTH   12
 Stroke width of the dot ring, in pixels.
 

Functions

void compositor_dot_transitions_collapsing_ring_animation_update (GContext *ctx, uint32_t distance_normalized, GColor outer_ring_color, GColor inner_ring_color)
 Draw a ring collapsing from the display edges to a dot at its center.
 
const CompositorTransition * compositor_dot_transition_timeline_get (bool timeline_is_future, bool timeline_is_destination)
 Get the dot transition into or out of the timeline.
 
const CompositorTransition * compositor_dot_transition_app_fetch_get (void)
 Get the dot transition shown when leaving the app fetch screen.
 

Detailed Description

Collapse the screen to a dot, or expand a dot into the new screen.

Macro Definition Documentation

◆ DOT_ANIMATION_STROKE_WIDTH

#define DOT_ANIMATION_STROKE_WIDTH   12

Stroke width of the dot ring, in pixels.

◆ STATIC_DOT_ANIMATION_DURATION_MS

#define STATIC_DOT_ANIMATION_DURATION_MS   233

Duration of the static dot transitions, in milliseconds.

Approximates the visuals of the design team's videos.

Function Documentation

◆ compositor_dot_transition_app_fetch_get()

const CompositorTransition * compositor_dot_transition_app_fetch_get ( void  )

Get the dot transition shown when leaving the app fetch screen.

Returns
Transition, or NULL if app-to-app transitions should be skipped.

◆ compositor_dot_transition_timeline_get()

const CompositorTransition * compositor_dot_transition_timeline_get ( bool  timeline_is_future,
bool  timeline_is_destination 
)

Get the dot transition into or out of the timeline.

Parameters
timeline_is_futureWhether the timeline shows the future (otherwise the past).
timeline_is_destinationWhether the transition goes to the timeline.
Returns
Transition, or NULL if app-to-app transitions should be skipped.

◆ compositor_dot_transitions_collapsing_ring_animation_update()

void compositor_dot_transitions_collapsing_ring_animation_update ( GContext *  ctx,
uint32_t  distance_normalized,
GColor  outer_ring_color,
GColor  inner_ring_color 
)

Draw a ring collapsing from the display edges to a dot at its center.

Parameters
ctxGraphics context to draw into; the ring is centered in its clip box.
distance_normalizedAnimation progress, 0 to ANIMATION_NORMALIZED_MAX.
outer_ring_colorColor of the collapsing outer ring.
inner_ring_colorColor of the thin ring along its inner edge.