コード例 #1
0
        // Token: 0x060005A0 RID: 1440 RVA: 0x0001BA90 File Offset: 0x00019C90
        private Color StripColors(float progressOnStrip)
        {
            Color result = Color.Lerp(Color.White, this.trailColor, ModHelper.GetLerpValue(-0.2f, 0.5f, progressOnStrip, true)) * (1f - ModHelper.GetLerpValue(0f, 0.98f, progressOnStrip, false));

            result.A = 0;
            return(result);
        }
コード例 #2
0
        // Token: 0x060005A3 RID: 1443 RVA: 0x0001BC08 File Offset: 0x00019E08
        private float StripWidth(float progressOnStrip)
        {
            float num       = 1f;
            float lerpValue = ModHelper.GetLerpValue(0f, 0.2f, progressOnStrip, true);

            num *= 1f - (1f - lerpValue) * (1f - lerpValue);
            return(MathHelper.Lerp(0f, 32f, num));
        }