Page 114 - CG_v2.1_flipBooks_class_5
P. 114
AI Connect is a platform that enables you to draw images and play with graphic elements
frequently. In this chapter, we will learn to draw lines that are slant, cutting each other or
just turning at an angles, to draw curve shapes, and to add and change values.
Available Blocks in AI Connect
AI Connect platform contains various block categories, some of them are:
Variables block is a container that holds a value, such as a piece of text
or a number. Variables can be reused and changed easily.
Input block is a container that takes a value, text or a number from the
user.
Turtles block is used to create graphics. The onscreen pen that you use
for drawing is called the turtle.
Motion block is used to control movement of the turtle.
Control block is used to set the position of Turtle.
Loop block is used to repeat a given set of instructions multiple times or a
defined number of times.
Colors block is used to choose different type of colours for turtle.
Functions block is used to avoid rewriting same logic/code again and
again in a program. A function is a ‘chunk’ of code that can be used over
and over again, rather than writing it multiple times.
Angles
When two lines going in different directions cut each other at a
point, they form an ‘Angle’. Angles are measured in ‘Degrees’ (°).
‘A’ is the degree of the given angle. The bigger ‘A’ is, the wider
is the angle. When A is equal to 0, there’s no angle and it’s a
straight line.
There are many real-life examples of angles like: clock, scissors,
tent, stairs, fingers and pizza slice.
Notes
1. Degree is the measurement of angle.
2. All of the angle values are between 0 to 360 degrees.
112 Computer Genius (V2.1)-V

