Fanservice FTW

If you have an ad blocker, please add *.fanserviceftw.com to your whitelist.

Image

main image
Uploader AerioGloris,
Tags katawa_shoujo time_warp-tan
Source shimmie.katawa-shoujo.com/image/1009.png
Locked No
Parent None.

Comments

AerioGloris
def acdc_warp(x):
import math
n = 10.0
if (x < (1.0 / n)):
res = (((2.0 / n) * (0.5 - math.cos(math.pi * (x * (n / 2.0))) / 2.0)) / 2.0) * (n / (n - 1.0))
elif (x > (1.0 - (1.0 / n))):
res = (((2.0 / n) * (0.5 - math.cos(math.pi * (1.0 - (((x - 1.0) * n) / 2.0))) / 2.0) / 2.0) + (1.0 - (2.0 / n))) * (n / (n - 1.0))
else:
res = (x - (0.5 / n)) * (n / (n - 1.0))
return res
See also http://katawashoujo.blogspot.com/2009/07/little-function-that-could.html for further details.