# I was wondering about the move () steps block

I was wondering bc i wanted to make one in html, (i feel like it involves math, so...)
How could i make the move (?) Steps effect in the browser x/y system and in the math also how?
And i know this has nothing to do with snap but it sorta does.

x += Math.cos(direction)
y += Math.sin(direction)
For these to work, direction must be in radians (if it is in degrees, replace it with direction * Math.PI / 180) and 0 is to the right and increases counterclockwise.