A "minimal" timer that displays 3 colored rings to indicate the progress of seconds, minutes, and hours, from the outside going in. The timer can be paused & reset. While paused, the timer's time units can be updated. Once the timer is up, the time display blinks a few times while sending out a short vibration.
In the center of the timer, a 3D projected rotates as the timer progresses.
Explores animation/state choreography and Canvas drawing APIs in Compose. The rotating cube is an exercise in 3D -> 2D projection mechanics, inspired by The Coding Train's Processing 3 tutorials.
Timer design inspired by a couple of Dribbbles, such as this and this.
Copyright 2020 The Android Open Source Project
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.