GameMaker (2.0 - 2.2.x)
Icon

Spirographs

Zelun

You must be logged in to obtain assets

Description

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.

Some of the spirographs created that are free to use: If you want to see more: LINK 1 and LINK 2

End User Licence Agreement (EULA).

Age Rating: 4+

Version

GMS2 - Version 1.0.2. Published October 27, 2018

Loading, please wait

Package contents

Loading, please wait

What is the issue?

Loading, please wait