How to draw a gradient bg instantly!

In this topic I will show you how to draw a gradient bag instantly! This same method will speed up sin/cos/tan backgrounds.

14 Likes

well you can write it in the op I guess?

4 Likes

cool - let me know if youโ€™d like anything added into the OP!

4 Likes

Iโ€™m assuming u mean with set position, and create a clone times?

1 Like

but takes too many clones
1 Like

In this topic I will show you how to draw a gradient bag instantly! This same method will speed up sin/cos/tan backgrounds.
Step 1.
Download @Awesome_E โ€˜s shortcut This Siri Shortcut Can Modify your Projects | ๐“๐”€๐“ฎ๐“ผ๐“ธ๐“ถ๐“ฎ_๐“”

Step 2:
Find Create clones block in custom ability.

Step 3:

When game starts 
create clone 768 times

When object is cloned
Change y by self clone index
set speed to 10000000
{draw a tail color [H) self y pos S) 100 B) 100]
change x by 1024}
1 Like

Basically the same thing with fewer clones

1 Like

FOR SIN/COS BG
Step 1.
Download @Awesome_E โ€˜s shortcut This Siri Shortcut Can Modify your Projects | ๐“๐”€๐“ฎ๐“ผ๐“ธ๐“ถ๐“ฎ_๐“”

Step 2:
Find Create clones block in custom ability.

Step 3:

When game starts 
create clone 768 times

When object is cloned 
change y by self clone index
set speed to 1000000
(Repeat 1024 times
{Draw a tail color [your color here] width 1
change x by 1})

Why do that when Project Builder can do that for you without any work except knowing the style and colors of the background?

Built-in Actions / Gradient Background

1 Like

thatโ€™s not instant, use set position instead of change x/y;)

It does that?? Iโ€™d use it more but I code on my school ipad and your website is blocked ):

1 Like

Either way it should be instant. Did you set speed?

1 Like

itโ€™s not instant

also setting position x 0 y 0 to begin would make it cover the screen

set position is always faster than change x/y

1 Like

oh right the common .io of any kind is blocked pretty often โ€“ I forgot about that. If you have the guts, you can try to figure out how to clone the repository and run a local server instead of using my page.

2 Likes

U can just destroy clones tho

1 Like

I have absolutely no idea how to do that

3 Likes

download zip (at github)
unzip
then open the html file

2 Likes

That is different from local server but that would also work.

3 Likes

Thanks for the help but I think we should discuss this on a different topic

3 Likes

I like this, but the problem is, you canโ€™t make it from scratch, since you have to download shortcuts. Itโ€™s like having to download mods to make a certain item in minecraft,