From 6e4e68ad7c79a439b44f53eb2130b0e358c06283 Mon Sep 17 00:00:00 2001 From: gosooners345 Date: Tue, 11 Jan 2022 10:34:01 -0500 Subject: [PATCH] Add ability for RNGS Added ability to hopefully use Custom random Number Generators to add different colors for larger datasets --- lib/src/main/java/com/faskn/lib/Slice.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/src/main/java/com/faskn/lib/Slice.kt b/lib/src/main/java/com/faskn/lib/Slice.kt index 1bd87d7..7f5ecb5 100644 --- a/lib/src/main/java/com/faskn/lib/Slice.kt +++ b/lib/src/main/java/com/faskn/lib/Slice.kt @@ -9,7 +9,7 @@ import androidx.annotation.Px data class Slice( val dataPoint: Float, - @ColorRes val color: Int, + val color: Int, val name: String, var arc: Arc? = null, @Px var scaledValue: Float? = 0f, @@ -22,4 +22,4 @@ data class Arc( ) { fun average(): Double = (startAngle / 2) + (sweepAngle / 2) + (((startAngle % 2) + (sweepAngle % 2)) / 2).toDouble() -} \ No newline at end of file +}