Spirographs are fascinating geometric roullete curves that can be used for various things in games. For example: Shapes of symbols, Loading screens, or magic effects!
How to use it:
- call once "spirograph_init();" at the create event of any object - call "spirograph_surface_init();" at the create event of any object For static spirographs: -spirograph_generate(seed) will return a surface with a static spirograph -spirograph_generate(len_list,speed_list,colors,width,step,rotation) will return a new surface with a static spirograph len_list: pivots that will orotate to generate the spirograph speed_list: speed of each pivot colors: list of colors that will be drawn through each iteration of the spirograph width: size of the ine of the spirograph step: how many iterations rotation: rotation of the spirograph Example: spirograph_generate(58); spirograph_generate([10,20],[-5,10],[c_blue,c_red],32,3000,image_angle); you may call gpu_set_blend_mode(bm_add); before creating the spirograph to make a spirograph with more vibrant collors. For animated spirographs: spirograph_animated_generate(seed) will return a surface with an animated spirograph that will be updated each time this funcion is called. spirograph_animated_generate(len_list,speed_list,colors,width,step) will return a surface with an animated spirograph that will be updated each time this funcion is called. Then, all you need to do is draw the surface wherever you want. Note that changing blend mode will also change the way you draw the spirograph.