You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.
Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.
sync on : sync rate 60
txt$ = "Scretching text thingumajig with help from 2D vectors"
v = make vector2(0)
v = make vector2(1)
v = make vector2(2)
set vector2 2, bitmap width()/2, bitmap height()/2
spacing# = 2.0 / len(txt$)
set vector2 1, mousex(), mousey()
for i = 1 to len(txt$)
linear interpolate vector2 0, 1, 2, i * spacing#
text x vector2(0), y vector2(0), mid$(txt$,i)
v = delete vector2(2)
v = delete vector2(1)
v = delete vector2(0)
Login to post a reply