mirror of
https://bitbucket.org/mfeemster/fractorium.git
synced 2025-07-16 21:24:55 -04:00
--User changes
-Clear all color curves when clicking Reset while holding down Ctrl. --Code changes -No longer assume palettes are 256 elements. Can now read and write longer palettes. -Ensure OpenCL images always get written when created.
This commit is contained in:
@ -412,21 +412,21 @@ FunctionMapper::FunctionMapper()
|
||||
" return 0.0;\n"
|
||||
" }\n"
|
||||
"\n"
|
||||
" if (w <= 4) // w in (0, 4]\n"
|
||||
" if (w <= 4)\n"
|
||||
" {\n"
|
||||
" real_t y = x * x;\n"
|
||||
" r = EvalRational(P1, Q1, y, 7);\n"
|
||||
" factor = w * (w + x1) * ((w - x11 / 256) - x12);\n"
|
||||
" value = factor * r;\n"
|
||||
" }\n"
|
||||
" else if (w <= 8) // w in (4, 8]\n"
|
||||
" else if (w <= 8)\n"
|
||||
" {\n"
|
||||
" real_t y = x * x;\n"
|
||||
" r = EvalRational(P2, Q2, y, 8);\n"
|
||||
" factor = w * (w + x2) * ((w - x21 / 256) - x22);\n"
|
||||
" value = factor * r;\n"
|
||||
" }\n"
|
||||
" else // w in (8, \infty)\n"
|
||||
" else\n"
|
||||
" {\n"
|
||||
" real_t y = 8 / w;\n"
|
||||
" real_t y2 = y * y;\n"
|
||||
@ -440,7 +440,7 @@ FunctionMapper::FunctionMapper()
|
||||
"\n"
|
||||
" if (x < 0)\n"
|
||||
" {\n"
|
||||
" value *= -1; // odd function\n"
|
||||
" value *= -1;\n"
|
||||
" }\n"
|
||||
"\n"
|
||||
" return value;\n"
|
||||
|
Reference in New Issue
Block a user