Skip to content
Discussion options

You must be logged in to vote

I don't know why, but my lineProgress() function wouldn't let me create it as an empty constructor, and when I passed it a value, it just stayed the same.

But I've found a way to do it; I've attached the code snippet. Thanks.

gradient = interpolate(
    type = linear(),
    input = FunctionCall.of("line-progress").cast(),
    0 to const(AppColor.Turquoise.turquoise),
    1 to const(AppColor.Turquoise.turquoise700),
)

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@sargunv
Comment options

@sargunv
Comment options

Answer selected by Danwolve98
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants