/compose-challenge-2

Primary LanguageKotlinApache License 2.0Apache-2.0

Wind-Up (ADC Week 2)

Workflow result

📜 Description

The most basic of timers, but at least it's pulsating! Control the remaining time and toggle the timer's state via buttons in this simple UI. Fun fact: The color scheme is vaguely inspired by the album art of that recent Autechre album.

💡 Motivation and Context

Interfacing with the legacy world through LocalContext was a first for me, as was the usage of a LaunchedEffect to achieve vibration when the timer is completed. The Canvas API was a lot of fun to explore and I moved from using the actual Canvas element to a custom drawBehind modifier over time. Finally, it was cool to review the maths stuff for cartesian/polar coordinate conversion again. Gotta love that unit circle.

📸 Screenshots

License

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.