gloriouscow on Nostr: this is all there is to the plasma effect itself<code> for (plasma_x = 0; plasma_x ...
this is all there is to the plasma effect itself<code> for (plasma_x = 0; plasma_x < 100; plasma_x++) {<br><br> x_result_list[plasma_x] = (20 * trigtbl[((plasma_x * 4) + alpha) % 360] +<br> 30 * trigtbl[(plasma_x + (alpha * 4)) % 360] +<br> 50 * trigtbl[((plasma_x / 4) + (alpha / 4)) % 360]);<br> }<br><br> for (plasma_y = 0; plasma_y < 100; plasma_y++) {<br><br> result_y = (40 * trigtbl[((plasma_y * 6) + alpha) % 360] +<br> 40 * trigtbl[(plasma_y + (alpha * 6)) % 360] +<br> 20 * trigtbl[(plasma_y + (alpha / 6)) % 360]);<br><br> for (plasma_x = 0; plasma_x < 100; plasma_x++) {<br> pds -> plasma_dib_ptr[plasma_x + (plasma_y * 100)] = (char)((result_y + x_result_list[plasma_x]));<br> }<br><br> }<br></code>