Skip to content

Instantly share code, notes, and snippets.

@alfwatt
Last active February 21, 2019 22:29
Show Gist options
  • Save alfwatt/9bdb855e425d8b4325478756b1a90396 to your computer and use it in GitHub Desktop.
Save alfwatt/9bdb855e425d8b4325478756b1a90396 to your computer and use it in GitHub Desktop.
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