Skip to content

Instantly share code, notes, and snippets.

@alfwatt
Last active Feb 21, 2019
Embed
What would you like to do?
Color Switcher

Color Switcher

Estimated time to complete 1-2 hours. The task is not timed and you can work at your own pace. You have at least 24 hours.

Tools

  • You can use any programming language you like
  • The project should open in Xcode or Android Studio and build and run on any iOS or Android device
  • Any 3rd party tooling (libraries and/or build systems) must be fully automated into the build

Goal

Build a simple iOS or Android Single-View application which displays a single color which can be changed by touch gestures.

Required Features

  • When the user swipes horizontally, right or left across the apps view the app should modify the hue of the current color by ±5% depending on the direction of the swipe.

  • When the user swipes vertically, up or down across the apps view the app should modify the brightness of the current color by ±5% depending on the direction of the swipe.

  • When the user taps on the view the color should be copied to the clipboard.

Bonus Features

  • When the user long-touches or force-touches the view the app should continuously update the color of the view as the users finger moves across the display.

  • When the user swipes with two fingers horizontally the app should vary the saturation of the color by ±5%.

  • When the user swipes with two fingers vertically the app should vary the alpha component of the color by ±5%.

  • Something surprising and delightful

Delivery

  • Provide a link to your source code in a git repository or web site

Review Considerations

  • Runtime Performance
  • Organization and Documentation
  • Attention to Detail
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment