Setting Default color in blocks

solved

#1

The Default color appears in the colour list in Designer but how do I set a button background to Default color in the blocks editor.

I have a button with default background color, I want to change the background colour when on and change back to Default when off


Ability to assign No Color to a color property via a Block
#2

Is this what you are looking for?


Each time you press the button it will check if the text says something and change the color. You can even make it so it checks what the color is instead of text.


buttonchange.aia (1.7 KB)


#3

Thanks Sam,
turns out its color 0


Ability to assign No Color to a color property via a Block
Frequently Asked Questions (FAQ)
#4

you canset your own color with this blocks.

below is a link to a page where you can get your “rgb” code for your own color:
http://www.colorschemer.com/online.html


#5

what is the code of colour ‘default’?


#6

I cant test it if it works but maybe you can use a math block and use “-1” or “-2” as color value.


#7

see my answer here https://groups.google.com/d/msg/mitappinventortest/IiHwE9GhT-0/c8OSEfXpfhcJ
Taifun