Does anyone know how to do frames on a drawing pad?

Can someone teach me how to do frames on a drawing pad? As, in when you press an arrow, more colors are shown, for example Serenity’s and wef2d’s new pad.
If this is allowed: @OMTL

13 Likes

Frames?

2 Likes

For example look at Serenity’s or wef2d’s recent pads

1 Like

Screenshot?

2 Likes

Ummm ok just a sec…

1 Like


The bottom arrows, when you press them, go to different frames of colors.

1 Like

Using variables. I’ll make an example.

3 Likes

Ok, thank you so much!!!

1 Like

https://c.gethopscotch.com/p/yvatehcfe
Easily modifiable for a drawing pad.

4 Likes

Thank you!!!

3 Likes

So…I just have to put this code to every color?
I don’t exactly get it…

3 Likes

Use self variables for all but the main frame one. Have one for h one for s and one for b on each frame.

Alternatively, you could have one self variable a frame, but that’d require a few math operators and is t tested yet.

3 Likes

Ummm but there is only a main frame and then when you press the arrow, it turns to a different frame?
Oh wait nvm

1 Like

Yea! You drag the blocks and have them what ever size. Like this:


Do you see the blocks close by to the flowers? That’s what I used

1 Like

No XD thats way too simple lol
I meant by arrows, when you press them, it goes to another set of colors…

2 Likes

You just use the same object, but change the HSB values

Ex.
When Page = 1
Set color to (HSB 0,50,100)
End

When Page = 2
Set color to (HSB 50,50,100)
End

When Self is tapped
If Page = 1
Set H to: 0
Set S to: 50
Set B to : 100
End
If Page = 2
Set H to: 50
Set S to: 50
Set B to: 100
End
End

Sorry that’s kind of confusing XD I can make a project if you want

4 Likes

That’s a really good guide!!!
Thank you sooo much!

2 Likes

Awww, NOOOOOOOOOO I’M LATE!!! :frowning:

1 Like

I think that the code in my drawing pad SuperDraw might help.

It’s built this way:
Choosing colors:
To choose which color “frame” or color palette you want, you tap a text and it will change the number of a value called Menu Items. Every color is represented by a square. To show the square at the right time, I used some Check If Else-blocks.
Drawing:
To make the drawing lag-free, I used one separate rule for each colors. It’s basically a “When _____ equals _____”-rule and a code for normal drawing.
If you want a link or some screenshots, just tell me :slight_smile:

2 Likes

You can still give me code, if you want to!!!

1 Like