mirror of
https://github.com/stevenrobertson/cuburn.git
synced 2025-02-05 11:40:04 -05:00
Fix julia variation. Closes issue 10.
This commit is contained in:
parent
8a3365712c
commit
9e74ff57ce
@ -102,15 +102,11 @@ var(12, 'ex', """
|
|||||||
""")
|
""")
|
||||||
|
|
||||||
var(13, 'julia', """
|
var(13, 'julia', """
|
||||||
float power = 2.0f;
|
float a = 0.5f * atan2f(tx, ty);
|
||||||
float t_rnd = truncf(mwc_next_01(rctx) * fabsf(power));
|
if (mwc_next(rctx) & 1) a += M_PI;
|
||||||
float a = atan2f(tx, ty);
|
float r = w * sqrtf(sqrtf(tx*tx + ty*ty)); // TODO: fastest?
|
||||||
float tmpr = (a + 2.0f * M_PI * t_rnd) / power;
|
ox += r * cosf(a);
|
||||||
float cn = 0.5f;
|
oy += r * sinf(a);
|
||||||
float r = w * powf(tx * tx + ty * ty, cn);
|
|
||||||
|
|
||||||
ox += r * cosf(tmpr);
|
|
||||||
oy += r * sinf(tmpr);
|
|
||||||
""")
|
""")
|
||||||
|
|
||||||
var(14, 'bent', """
|
var(14, 'bent', """
|
||||||
|
Loading…
Reference in New Issue
Block a user