|
-
Aug 7th, 2011, 07:17 PM
#25
Re: [RESOLVED] Convert VB6 Code to VB2010. Code from "The most amazing VB6 Code ever"
 Originally Posted by EntityX
I've ventured into adjusting some variables that will sometimes cause arithmetic overflows.
...
You'll notice LerpMultiplier1 and 2 in the Lerp function above. I'm limiting those to 1.5 maximum.
Yeah... take those two out. You're breaking the meaning of the function. The function interpolates between two colours. If you want to produce weird effects, pass in weird colours. Don't make this function do weird stuff.
Without those two multipliers, the Lerp function will not error.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|