cmu chpt 1
12 Questions
0 Views

Choose a study mode

Play Quiz
Study Flashcards
Spaced Repetition
Chat to lesson

Podcast

Play an AI-generated podcast conversation about this lesson

Questions and Answers

What is the range of values for opacity?

  • Between 0 and 255
  • Between 0 and 1
  • Between 0 and 100 (correct)
  • Between 1 and 1000
  • What is the default gradient type?

  • Radial gradient (correct)
  • Circular gradient
  • Angular gradient
  • Linear gradient
  • What is the default line width?

  • 10
  • 5
  • 1
  • 2 (correct)
  • How do you draw a circle?

    <p>Circle(centerX, centerY, radius)</p> Signup and view all the answers

    What is the range of values for the roundness of a star?

    <p>Between 0 and 100</p> Signup and view all the answers

    How do you draw a polygon?

    <p>Polygon(x1, y1, x2, y2,..., xn, yn)</p> Signup and view all the answers

    What is the default fill color for a rectangle?

    <p>black</p> Signup and view all the answers

    What is the default border width?

    <p>2</p> Signup and view all the answers

    What is the purpose of the dashes argument in drawing a rectangle?

    <p>To specify the dash pattern for the border</p> Signup and view all the answers

    How do you specify a custom color using RGB values?

    <p>rgb(red, green, blue)</p> Signup and view all the answers

    What is the coordinate system used on the canvas?

    <p>x values increase as you head right, y values increase as you head down</p> Signup and view all the answers

    What happens when you draw a shape with a fill set to None?

    <p>The shape is not filled</p> Signup and view all the answers

    More Like This

    Use Quizgecko on...
    Browser
    Browser