How to use clones to set drawing pad colors

clones
tagica
com_was_here
ae_was_here
tag⁣ica

#21

WAIT LOL
Let me get the code, K


#22

ok. @Petrichor hold ur horses


#23

ok i think we good get this topic in the bin now.


#24

No!
Acually, no Petty.
I WILL CHOOSE WHEN THIS GOES
Not trying to be rude, it’s just I need this.

No one will find this post
Please don’t ha te me
My croosh is dcfvghbgtfcdvghbgvfcdvgbh
I wont laugh, thats not even funny. I had a feeling, but i wasn’t sure. Your secret is safe with me
Thanks
Wait did you tag them?
I saw a edit of a CTS tag… how could you J
What? Wdym? I just was hiding your secret
Oh ok sorry lol, I’m nervous about this lol
So we are kinda besties now lol : )
Yes that is correct
Pass?
Wait- just I wanted to tell you something with the code, lol no offense but my trust isn’t that blind lol sorry

@HardcoreHufflepuff im crüshing on CTS
Don’t tell anyone

I have to go
Ok.
Ok, bye

@JACG2018MASTER hello CoM is back on
Ok I’m just surprised -HardcoreHufflepuff
Did you rlly think I’d hate you?
Honestly, yeah…


#25

ok nevermind @Petrichor, hold your horses


#26

If you could, could you snapshot the main code?
Lol it’s to complicated!


#27

ok


#28

Now that I look at it, it’s pretty clonky and could be made better, but it works!
Screenshots:


#29

Pk, I did the color thing, so it creates a clone and set a diffrent color. But how do you make the pen thing?
@Petrichor could you help?

  • The clone index is always one
    @Hopscotcher
    Also to H, you were the first one to tag me on the forum, Yahoo lol

#30

Just make a text object with the code:
When iPad is tapped {

Go to Finger

}

When IPad is pressed {

Draw a trail color H(h), s(s), B(b) Width (width)

Go To Finger

}

Which is basically the “Draw Like A Pen” block thing


#31

Clones for colors are the best way to do it, good job.
Never use individual objects, it’s harder to code and is messy.


I would use when self is tapped, so that the clone being tapped does the code inside.
Here’s what I mean.




In the drawing object, I use the default draw like a pen rule, but with the color replaced. It’s hsb, where each value is an iPad variable. This is very important, since the system for colors I have makes iPad variables here important.



This is just to show you the code of the color object. I interpreted your post to mean that each hue is a separate object, so that’s how this code is set up.



This is the color ability. I made some mistakes here, can you see them? I have the x value as the same for every object, and the hue and saturation values are hard coded. This is bad, since this rule will only work with one group of clones. Can you see a way to make it work with all clones?
Basically, it sets position first. Then, it sets three object variables to the color you want it to represent. They must be object variables, because the global iPad variables for the color will be set to these later. Then it sets its color to the object variables.



This is what you asked for mainly. The main part is the when self is tapped. This means that only the clone tapped will set the variables. So when a clone is tapped, this code is run by that specific clone. It sets the global color its own color.



Here’s the result, if you want to look through the code.




Hope this helps.


#32

I was also going to say that…


#33

This helped very well, I cannot thank you enough!

@Ha rdcore Hufflepuff

@Petrichor I wonder why it doesn’t work?


#34

So @Petrichor, the pastel works great! I tried to add another text for neon, copied and pasted, switched variables, etc. But it keeps on turning blue when any neon is tapped. Why, and is there a way I can fix this?


#35

Do ‘When self is tapped’ set a variable ‘H’ to ‘self clone index’ x 3 or something.


#36

And then S and B stay at 100 because it’s neon


#37

Okay, Let me try that.
Also I really like your projects on Hs


#38

Thanks!


#40

Ah. Get rid of the x3 then. I was just thinking that you wouldn’t want 360 different objects for every single different colour. It doesn’t particularly matter how you do it though.


#41

Please see Drawing Pad X, that is how I set color (look under pallet -> when self is tapped)