Advertisement
IcarusLives

:ellipse x y r1 r2 function

Mar 22nd, 2017
240
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Batch 0.39 KB | None | 0 0
  1. :ellipse x y r r
  2.         set /a "s=PI / 100 + (%~3 * %~4) + (%~3 * %~4)"
  3.         for /l %%e in (0,5,!s!) do (
  4.             set /a "x=%~3 * !sin(x):x=%%e! + %~1"
  5.             set /a "y=%~4 * !cos(x):x=%%e! + %~2"
  6.             set /a "_x2=x + 1"
  7.            
  8.             call set "_[!y!]=%%_[!y!]:~0,!x!%%%~5%%_[!y!]:~!_x2!%%"
  9.         )
  10.         for %%a in (s x y _x2) do set "%%a="
  11. goto :eof
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement