17 Questions
How can you add a rectangle to the graphics window using the 'Shapes' object?
Rectangle = Shapes.AddRectangle(100,100)
What does the 'Shapes' object in SmallBasic allow you to do?
Apply modifications to images such as rotation and zooming
What color is set for the brush before adding a circle using the 'Shapes' object?
"yellow"
How can you move a shape called 'Circle' to a position (400,300)?
Shapes.Move(Circle, 400,300)
Which object in SmallBasic allows you to perform operations like moving and adding shapes without using loops?
'Shapes'
What happens if you try to use the 'Animate' command with shapes in SmallBasic?
'Animate' command throws an error
What is the purpose of the line 'Shapes.Zoom(rectangle2, i * 0.5, i * 0.5)' in the provided code snippet?
To zoom out on the rectangle
What does the line 'GraphicsWindow.PenWidth = 0.5' in the code snippet indicate?
It sets the width of the pen used for drawing shapes
Why is 'GraphicsWindow.BrushColor = GraphicsWindow.GetRandomColor()' used in the code snippet?
To determine the color of the brush used for shapes
What is the role of 'Shapes.Move(rectangle1, i * 10, i * 10)' in the provided code?
To change the position of 'rectangle1'
How is the loop 'For i = 0 To 20' utilized in the provided code fragment?
To specify the number of loops for shape creation
What does the code 'Shapes.HideShape(Rectangle)' in the given text do?
Hides the rectangle shape on the graphics window
What is the purpose of the code 'Shapes.Rotate(rotateshape, 30 * i)' in the given text?
Rotates the rectangle shape at 30-degree intervals
What does 'Shapes.SetOpacity(rectangle1, i * 25)' achieve in the code snippet provided?
Changes the opacity of 'rectangle1' in increments of 25
What is the function of 'Shapes.Zoom(ShapeName, X-level, Y-level)' according to the text?
Zooms the specified shape by adjusting both X and Y levels
What does 'GraphicsWindow.DrawText(20,20i,30i)' do in the provided code snippet?
Draws text showing degree values on the screen along Y-axis
How does 'Shapes.Move(rectangleshape, 50, 80)' affect the rectangle in the text?
'rectangleshape' is moved to position (50, 80)
Learn how to create and move shapes in SmallBasic using loops and predefined functions. This quiz covers creating multiple rectangles with random colors and dimensions, along with moving the shapes to different locations on the screen.
Make Your Own Quizzes and Flashcards
Convert your notes into interactive study material.
Get started for free