Line width, Draw Canvas

How do I set the line width when using DrawLine? Can I use a button / buttons to change the line size and colour?

A very good way to learn App Inventor is to read the free Inventor’s Manual here in the AI2 free online eBook … the links are at the bottom of the Web page. The book ‘teaches’ users how to program with AI2 blocks.
There is a free programming course here and the aia files for the projects in the book are here:
How to do a lot of basic things with App Inventor are described here: .

Also do the tutorials to learn the basics of App Inventor, then try something and follow the Top 5 Tips: How to learn App Inventor

Credit: Tip taken from Taifun.

Use these blocks to set the properties of width and colour


Use logic, lists to change these with buttons

Thanks for the links. I have actually done most of the tutorials and I’m gradually finding my way round but its a slow process. Lots of things I still don’t understand. I won’t ask a question on the forum until I have tried to work it out or look up the solution on the tutorials / documentation. I’ll keep trying. Thanks again.

1 Like

Excellent. Thank you very much.

I usually use a Spinner with preset values from 1 to 50.
1, 5, 10, 15, 20, 30, 40, 50

For color, I like Italo's color picker.
It's a bit advanced but really nice: