Skip to content

Instantly share code, notes, and snippets.

@cyrilmottier
Created June 25, 2018 16:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cyrilmottier/06cb0c8859e5acef13862bc53539ea4c to your computer and use it in GitHub Desktop.
Save cyrilmottier/06cb0c8859e5acef13862bc53539ea4c to your computer and use it in GitHub Desktop.
@ColorRes
private val RAINBOW_COLORS = intArrayOf(
R.color.pink,
R.color.orange,
R.color.yellow,
R.color.green,
R.color.emerald_green,
R.color.azur_blue,
R.color.blue,
R.color.cerulean_blue,
R.color.purple
)
private const val RAINBOW_WIDTH = 360
private const val RAINBOW_ANGLE = 30.0 / 180.0 * PI
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment