Kotlin/kandy

Add "identity" scales

AndreiKingsley opened this issue · 4 comments

"Identity" scale is a scale that takes aesthetics values directly and does not change them
For example:

color(listOf(Color.RED, Color.GREEN, Color.BLUE)) {
   scale = identity()
}

I think this behavior is default

Do you mean that this scale should be used by default when a required type is used and detected?

Yes
And what is the motivation to add identity at all?

Example above - sometimes user uses aesthetics values directly in the input data.