A few variation fixups

This commit is contained in:
Steven Robertson 2011-06-11 17:21:34 -04:00
parent e79df46c66
commit 6c7d0270ad

View File

@ -57,15 +57,15 @@ var(7, 'heart', """
float sq = sqrtf(tx*tx + ty*ty); float sq = sqrtf(tx*tx + ty*ty);
float a = sq * atan2f(tx, ty); float a = sq * atan2f(tx, ty);
float r = w * sq; float r = w * sq;
ox += r * sinf(a) ox += r * sinf(a);
oy -= r * cosf(a) oy -= r * cosf(a);
""") """)
var(8, 'disc', """ var(8, 'disc', """
float a = w * atan2f(tx, ty) * M_1_PI; float a = w * atan2f(tx, ty) * M_1_PI;
float r = M_PI * sqrtf(tx*tx + ty*ty); float r = M_PI * sqrtf(tx*tx + ty*ty);
ox += sinf(r) * a ox += sinf(r) * a;
oy += cosf(r) * a oy += cosf(r) * a;
""") """)
var(9, 'spiral', """ var(9, 'spiral', """