1 of 68

Coding Session #1

2 of 68

You live in different houses, how would communicate at night?

3 of 68

You can use light and decode the message! How?

4 of 68

Ok, let’s do this!

A - 1 blink

B - 2 blinks

C - 3 Blinks

Z - 26 Blinks

And longer pause between words

5 of 68

How long it will take to say “How are you”

131 Blinks!

6 of 68

Solution?

7 of 68

Morse code

8 of 68

2 kinds of blinks:

  • short blinks (dot)
  • long blinks (dash)

It would take 32 blinks for “How are you” instead of 131.

9 of 68

What does it mean?

10 of 68

How would you communicate during the day?

11 of 68

Use bulb and wire it!

12 of 68

Use 2 of them!

13 of 68

And I have a question!

How people communicate 160 years ago?

14 of 68

Answer is Telegraph! But you need at least Electricity

15 of 68

Ok, now let’s talk about the numbers!

Why numbers? Because it is universal in all languages!

16 of 68

But there are could be a trick!

base 8 or Octal

base 10

base 4 or Quaternary

base 2 or Binary

17 of 68

Computers use Binary i.e. 0 and 1

18 of 68

You may hear word Bit

19 of 68

What is bit?

For example, 110100 is a Binary Number. A “bit” is a single binary digit. The number 110100 has 6 bits.

All data in a modern digital computer is ultimately stored and transmitted as a series of zeros and ones. Everything from our apps, photos, and programs is transmitted in a series of zeros and ones.

Every computer is made up of billions of bits. A bit is short for Binary Digits and each bit is read by the computer as either on or off. The on and off values are represented by the numbers 1 and 0. Computers use billions of these sequences to store together complex information.

20 of 68

What is bitmap?

Bitmap image files are able to store large images by breaking them down into smaller pieces.

Bitmaps are composed of a series of small dots called pixels.

When looked at up close, a bitmap image might just look like a series of small squares.

21 of 68

What is Pixel?

A pixel is a little tiny square that is filled with a color. We use pixels to see pictures on our computers. Each pixel is like a building block used to create something bigger.

22 of 68

23 of 68

Vacuum clean!

Let’s draw a path how would you clean the room!

24 of 68

How I would clean the room!

25 of 68

How robot will do it?

26 of 68

How to describe the algorithm? Use Flowchart!

27 of 68

New word alert! Sequence!

28 of 68

New word alert! Selection!

29 of 68

New word alert! Repetition!

30 of 68

Exercise - create algorithm

31 of 68

Exercise - create algorithm 2

32 of 68

The Foos

https://thefoos.com/webgl

33 of 68

Think & Learn Code-a-Pillar App

34 of 68

Daisy the Dinosaur App

35 of 68

Scratch Jr.

https://www.scratchjr.org/

36 of 68

Scratch

https://scratch.mit.edu/

37 of 68

Exercise for today -> Let’s Dance

https://code.org/dance

38 of 68

Coding Art Session #2

39 of 68

40 of 68

Pixel art

41 of 68

Pixel Animation

42 of 68

What should we know?

  • What is Pixel?
  • What is Resolution?
  • What is Animation?

43 of 68

Pixel

Pixel is the smallest element of picture.

44 of 68

Resolution

The number of pixels used for creating a picture calls RESOLUTION.

More Pixels -> better picture.

45 of 68

Resolution

Pac Man game example

288 pixels

224 pixels

How many pixels do we have here?

46 of 68

Resolutions Nowadays

Standard Definition (480p)

High Definition (720p)

Full High Definition (1080p)

Ultra High Definition (2160p)

47 of 68

TV Resolution 1080p

1080 pixels

1920 pixels

How many pixels do we have here?

48 of 68

Phone Resolution 1080p

49 of 68

What is Megapixel?

Megapixel = 1,000,000 pixels!

50 of 68

Iphone 14 - 48 MP camera

51 of 68

Human Eye Resolution

576 megapixels

What animal has the sharpest eye?

52 of 68

Pixel Art

53 of 68

Pixel Art -> dot Art

started in 80s and 90s within video games

54 of 68

Pixel art

Pixel art is a digital art form where color is applied to individual pixels to create an image.

Art is saved in file format GIF or PNG.

JPEG is good for photo, but not for Pixel Art.

55 of 68

2 Forms of pixel art

isometric looks like 3d

non isometric looks like 2d

56 of 68

What is Sprite?

Sprite is the visual building blocks for animation.

We can create 32x32 or 96x96

57 of 68

What is Animation?

Animation is the process of creating images that when played together give the illusion of motion.

58 of 68

Early Animation

59 of 68

Early Animation

60 of 68

Walt Disney

61 of 68

Let’s create one using Piskelapp.com

62 of 68

Before start - try to think about animation you would like to have, create a sketch

63 of 68

What will we build?

64 of 68

Dithering - mix 2 colors

65 of 68

Adding Layers

66 of 68

I have now a Picture of a Robot

67 of 68

Now we can build the animation

68 of 68

Key Frame and Between Frame