Skip to content

SergeyBurlaka/GradientStepUtil-Android-CustomView-Color

Repository files navigation

GradientStep

I have wrote the StepGradientUtil class for calculate colors gradient.

via very, very simple Kotlin code:

    val pink = Colar(245, 9, 253)
    val lime = Colar(0, 253, 32)

    lp_1.colors = (pink toColor lime).run {
        gradient { 0 upTo 3 }
    }

    lp_2.colors = (pink toColor lime).run {
        gradient { 0 upTo 9 }
    }

    lp_3.colors = (pink toColor lime).run {
        gradient { 3 upTo 9}
    }

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages