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




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




Ummm ok just a sec…


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


Using variables. I’ll make an example.


Ok, thank you so much!!!


Easily modifiable for a drawing pad.


Thank you!!!


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


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.


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


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


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


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

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

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

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

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


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


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


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.
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:


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