unit 1 cmu graphics

0.0(0)
studied byStudied by 1 person
0.0(0)
full-widthCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/23

encourage image

There's no tags or description

Looks like no tags are added yet.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

24 Terms

1
New cards

4 things a computer does?

  • take input

  • storage

  • processing

  • output

2
New cards

high level vs low level programming languages

high level

  • human friendly

  • portable

  • easy to read/understand

  • ex: python and java

low level

  • machine language (hexadecimal rep. of binary code)

  • harder to write and debug

  • faster memory-efficient code

  • ex: binary

3
New cards

compiler

a program that converts instructions into a machine-code or lower-level form so that they can be read and executed by a computer

4
New cards

integrated development environment (IDE)

a software application that helps programmers develop software code efficiently

5
New cards

autograder

  • check button

  • CMU will check code for correctness

6
New cards

code editor

type in code using python

7
New cards

inspector

gives info about shapes (top-left corner for rect, center for circle, diff x,y coordinates)

8
New cards

canvas

400×400 pixel grid where image is displayed

9
New cards

console

display text output of error messages

10
New cards

debugging in programs

process of identifying and removing errors from a program

11
New cards

syntax error

  • does not run

  • violates rules of programming language and program will NOT execute

12
New cards

logistic error

  • runs, typed wrong

  • mistake in code that results in unexpected output even though the program runs without error

13
New cards

runtime error

  • doesn’t run properly

  • error that occurs during the execution of the program

14
New cards

built-in functions and parameters

  • predefined functions that are part of programming language

  • may require parameters

  • ex: rect star, poly, circle

15
New cards

how to write rect

Rect(x,y,width,height,fill,border,borderWidth)
Rect(200,300,50,50,fill = None, border = ‘blue’, borderWidth = 7)

16
New cards

star special property

  • roundness

  • makes points spiker or rounder

17
New cards

label parameters

size - only number

fonts - either arial, monospace, caveat, cinzel, montserrat, grenze, sacramento, or orbitron

bold - either True or False

italic - either True or False

18
New cards

8 starting positions for gradient

left, right, top, bottom, left-top, right-top, left-bottom, right-bottom

19
New cards
20
New cards
21
New cards
22
New cards
23
New cards
24
New cards