HOME | DD

deathblob — pony checkerboard

Published: 2012-06-07 21:29:07 +0000 UTC; Views: 201; Favourites: 1; Downloads: 2
Redirect to original
Description 1 of two variants of a formula by uxyd : [link] . I'm aware of the squares having gaps on luna's side, could not fix it easily due to the palate used.

Formula in game maker is for each pixel z = sin(subx) * sin(suby) * 80 + subx*suby / point_distance(840.1,550.1,subx,suby) . subx= (x-840)/40 and suby=suby= (y-550)/40 those help define the center point and zoom level. The reason for the .1's in the distance check is to prevent division by 0 in this case. The color picked is then z*2 mod 323 = the x position on the palate gradient to use.
Related content
Comments: 0