QB64 - Graphics & Sounds

0.0(0)
studied byStudied by 0 people
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
Card Sorting

1/9

flashcard set

Earn XP

Description and Tags

Computer

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

10 Terms

1
New cards

PIXEL

  • Smallest possible element of an image on the screen

  • the computeer screen has hundreds of pixels

2
New cards

RESOLUTION

  • Measured in terms of pixels vertically & horizontally on the screen

3
New cards

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

4
New cards

COLOR

Changes colour of screen & text

You must write the colour no.

  • U can change foreground & background colour

    Color (foreground colour),(background colour)

5
New cards

PSET

  • Highlights one single pixel at a specific point (coordinate)

  • Works only if SCREEN is used

  • Syntax

    PSET ([x coordinate],[y coordinate]), colour

6
New cards
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

7
New cards

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

8
New cards

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

9
New cards

BEEP

  • Produces a beep sound for ½ of a second

  • You just need to put beep wherever u want it

10
New cards
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)