Quantcast
Channel: nesdev.org
Viewing all articles
Browse latest Browse all 746

I made a program to generate easing coordinates tables

$
0
0
It can:
  • Generate tables by selected easing, multiplier, addend, top and bottom overflow limits.
  • Print them with desired formatters (optionally separately set up for first and last cells
  • Show graph of the selected options beforehead to see the final animation
And all this in the console.

https://github.com/codemeow/doner

It flawlessly works on linux and works on windows with some limitations (see readme).

Image
Image

Code:

    doner -m table -e inelastic

Code:

    0.00     0.00    -0.00     0.00     0.00     0.00     0.00  <...>   -0.01    -0.01    -0.01    -0.01    -0.00    -0.00     0.00  <...>   -0.02    -0.02    -0.03    -0.04    -0.05    -0.05    -0.04  <...>    0.05     0.05    -0.01    -0.09    -0.18    -0.26    -0.33  <...>

Code:

        doner -m table -e insine -c "%3hhu " -k 100

Code:

  0   0   0   0   0   0   1   1   2   2   3   3   4   4   5   6   7   8   8   9  10  11  12  13  15  16  17  19  20  22  23  25  27  28  30  30  32  34  36  38  40  42  44  46  48  50  52  54  57  59  61  63  63  66  68  71  73  75  78  80  83  85  88  90  93  95  98 100 

Code:

        (6502 assembly format)        doner -m table -e insine -f "   .byte $%02x, " -c "$%02x, " -l "$%02x" -k 255

Code:

   .byte $00, $00, $00, $00, <...> $0b, $0d, $0f, $12   .byte $14, $14, $17, $19, <...> $3c, $40, $44, $48   .byte $4d, $4d, $52, $56, <...> $8b, $90, $96, $9c   .byte $a2, $a2, $a8, $ae, <...> $ec, $f2, $f9, $ff

Code:

        (C static constant format)        doner -m table -e insine -f "   [ %f, " -c "%f, " -l "%f ],"

Code:

   [ 0.000000, 0.000000, 0.000311, <...> 0.052073, 0.060307, 0.069126 ],   [ 0.078524, 0.078524, 0.088494, <...> 0.250219, 0.266948, 0.284133 ],   [ 0.301763, 0.301763, 0.319827, <...> 0.566116, 0.588713, 0.611565 ],   [ 0.634659, 0.634659, 0.657980, <...> 0.950154, 0.975069, 1.000000 ],

Statistics: Posted by Soph — Wed Dec 20, 2023 2:28 pm — Replies 2 — Views 124



Viewing all articles
Browse latest Browse all 746

Trending Articles