1
00:00:01,870 --> 00:00:07,470
OK, in the last four days, we created a clear screen button and a save as Panji button in this video,

2
00:00:07,480 --> 00:00:09,970
we want to start to work out these functions.

3
00:00:10,000 --> 00:00:15,030
So in this video, we're going to do the screen function first, and it shouldn't be very hard at all.

4
00:00:15,040 --> 00:00:17,960
So we've got our canvas right.

5
00:00:18,010 --> 00:00:25,960
So we always have to do is sort of delete it so we can call my canvas delete and we pass in all we want

6
00:00:25,960 --> 00:00:28,080
to delete everything in the canvas.

7
00:00:28,090 --> 00:00:28,360
Right.

8
00:00:28,780 --> 00:00:33,160
And so let's go and save this and let's just run this to see if this worked.

9
00:00:37,300 --> 00:00:41,170
Let's draw some stuff, change the brush color.

10
00:00:42,450 --> 00:00:47,160
Maybe change this to a diamond, whatever.

11
00:00:47,850 --> 00:00:50,070
Now clear the screen, boom, it clears.

12
00:00:50,070 --> 00:00:51,440
Now check this out.

13
00:00:51,450 --> 00:00:59,280
If we have a green background and then we clear the screen, nothing happens because we can change brush

14
00:00:59,280 --> 00:01:00,150
colors here.

15
00:01:01,400 --> 00:01:07,100
And we can do stuff and work like this, it deletes that stuff, but it's not changing that the canvas

16
00:01:07,100 --> 00:01:11,620
back to its default and we probably want to do that so we can make that change really quick.

17
00:01:11,960 --> 00:01:15,680
We can just call my canvas and we could just.

18
00:01:16,690 --> 00:01:23,410
Doc config and then set the bug, the background color to anything we want, let's just set it back

19
00:01:23,410 --> 00:01:25,870
to white the default so that we save this.

20
00:01:25,870 --> 00:01:27,070
Let's run this guy again.

21
00:01:30,370 --> 00:01:36,520
And if we've changed the canvas color to whatever and now when I click clear the screen, it changes

22
00:01:36,520 --> 00:01:43,360
back to white so we can do anything we want, but that there let's change this to pink because that

23
00:01:43,360 --> 00:01:44,020
is horrible.

24
00:01:44,490 --> 00:01:50,560
Right now we click this screen button, boom, everything goes back to the default and we can start

25
00:01:50,560 --> 00:01:51,020
over again.

26
00:01:51,040 --> 00:01:53,140
So pretty simple, pretty straightforward.

27
00:01:53,410 --> 00:01:55,180
And I think that's all for this video.

28
00:01:55,180 --> 00:02:00,100
And the next video will go ahead and knock out this save tipping thing and go from there.
