Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
@Parzi what's the problem then? (As in, more context)
Are you supposed to build a circuit for doing this or something? -
You multiply it?
sin(angle) * stretch_amount
Think about what happens to x. It get further away, proportionately. -
You can strech in x direction by multiplying with x before feeding into the sin function and stretch in y direction by multiplying the result of the sin function. So yeah have fun.
-
Quirinus7535y@AlgoRythm that stretches it in the y direction, yes.
To stretch it in the x direction, if you have y = sin(x)
do y = sin(x/a)
Where a > 1 -
i'm so desperate to get a demo effect working i've asked a math teacher a question which feels trivial but i can't crack
how the FUCK do you stretch sine waves???
rant