1/9
Computer
Name | Mastery | Learn | Test | Matching | Spaced |
---|
No study sessions yet.
PIXEL✨
Smallest possible element of an image on the screen
the computeer screen has hundreds of pixels
RESOLUTION
Measured in terms of pixels vertically & horizontally on the screen
SCREEN command 💻
All graphic commands can be used only if SCREEN is used
Changes the resolution
2 types of modes:
Text mode
Graphic mode
SCREEN 0 = only text
SCREEN 1 - 13 = graphics & text
Higher the number, higher the resolution
COLOR
Changes colour of screen & text
You must write the colour no.
U can change foreground & background colour
Color (foreground colour),(background colour)
PSET
Highlights one single pixel at a specific point (coordinate)
Works only if SCREEN is used
Syntax
PSET ([x coordinate],[y coordinate]), colour
LINE
➖
Draws a line b/w 2 specific coordinates (points)
SCREEN shd be used before using this
U can draw squares/ rectangles with this
B or BF
shd be used for making a rectangle or square
Syntax
LINE (X1,Y1) - (X2,Y2),colour, B/BF
B = outlined box
BF = Filled box
CIRCLE
⚪
Draws a circle of a specific radius at given coordinates
Can be used only if SCREEN command is used
Syntax
CIRCLE (X,Y), radius ,colour
Ex. Circle (30,60), 20, 4
Paint 🖌
Used to paint a specific point
U have to tell where it shd start, & where it shd stop (borders), otherwise it’ll cover the whole screen
SCREEN shd be there to use paint
Syntax
PAINT ( X,Y), colour number, border colour
Border color tells paint that it shdn’t paint further when it finds a pixel of that colour
BEEP
Produces a beep sound for ½ of a second
You just need to put beep wherever u want it
Sound
Produces sound of a specific frequency for a specific duration from the speaker
Only 1 sound is played at a time
Syntax
Sound , f, d
f = Frequency (hertz)
D = duration (in ticks)