You are on page 1of 7

Paint Pot

By Rebecca Faulkner

Starting First we started by dragging in a canvas and choosing fill parent the
300 pixels.

This makes the image fit to the screen.

Setting Up When User Touches


After the canvas was added open the blocks editor

Go to my blocks and drag when canvas.1.Touched. Then add call Canvas.1 Draw circle . For the Canvas.1draw line we had to put in the values. They were found in my deffinations and we had to put in prevX then prevY followed by currentY and currentY.

Making Buttons
To make the buttons drag three buttons onto the canvas area x3. On the right had side of the screen rename the buttons to BlueButton so on. Also make the text saw the colour of the button as well which is on the right hand side of the screen as well. Open the blocks editor and go to my blocks go to the button buttons drag in when BlueButton is clicked, then go to canvas.1 and drag in the block canvas.1Paint colour to then click on the joint and add colour x3 for each button.

Different Sized Buttons


Drag in two new buttons to the user interface. Then put all the buttons into a horizontal arrangement which is on the left
hand side of the screen in screen arrangements. Rename and add the text Big and Small to each of the buttons. Open blocks editor and drag in when BigButton and SmallButton is clicked. Go to my definitions and drag in Variable change name to dotsize and add the number 2 to it . Go to my definitions again and select set global dot size to and for the big button add the number 8 and for the small button add the number 2.

Take Picture Button


First we dragged a new button in again. Renamed it and added text. The we added a media component which was the camera. Then opened the blocks editor we then went to My blocks and clicked
TakePictureButton and dragged out the block when clicked. Then went to the Camera.1 and dragged out Camera.1TakePicture and put it in the when clicked Button. Then click Camera.1 and drag out AfterPicture do Then go to canvas1 and select set Canvas1.Backgroundimage to then go to my definition and add in Image.

Colour Change The Buttons


To make the button change colour change when it is clicked. Go to RedButton and drag out set BackgroundColour to add the colour and
do it again but choosing the button you are not clicking on eg.Red=green button to none and blue button to none.

You might also like