I have An error please help me
I have an error with lerp
Asked Answered
Lollar First two arguments must be of the same type because function needs to interpolate between them, so make them both either float or int.
@"mahesh_07"#p129283 Use a float literals. Every literal that has a decimal point is considered a float value. Otherwise it's considered an integer.
1.0
- float
1
- int
If you use variables you can explicitly cast them via float()
and int()
@"mahesh_07"#p129286
stylebox.bg_color.h = lerp(.0, .3, value/100.0)
Evince thank you
© 2022 - 2024 — McMap. All rights reserved.