WorksheetsG8_Graphics Window_Drawing Lines
Total questions: 15
Worksheet time: 17mins
Gets or sets the color of the pen used to draw shapes on the Graphics Window.
GraphicsWindow.PenColor
GraphicsWindow.PenHue
GraphicsWindow.PenHex
GraphicsWindow.PenKulay
Gets or sets the Background color of the Graphics Window.
GraphicsWindow.BackgroundColor
GraphicsWindow.ForeColor
TextWindow.BackgroundColor
GraphicsWindow.Height = 100
GraphicsWindow.PenColor
To draw shapes in Small Basic you must first open a?
Graphics Window
Text Window
Variable Window
Image Window
Which of the following is not a Graphics Window Property or Operation?
PenColor
PenWidth
PenDirection
BackgroundColor
Write the code to set the Title of the GraphicsWindow To (Quiz 3)
GraphicsWindow.Title = " Quiz 3 "
GraphicsWindow.Title = ( Quiz 3 )
GraphicsWindow.Title ( Quiz 3 )
GraphicsWindow.Title. Quiz 3
The Code used to set the width of the GraphicsWindow To (300) is _________
GraphicsWindow.Height = 300
GraphicsWindow.PenWidth = 300
GraphicsWindow.Width = 300
To draw the Green Line, write the following code
GraphicsWindow.Drawline (600 , 0 , 0 , 600 )
GraphicsWindow.Drawline (600 , 0 , 300 , 300)
GraphicsWindow.Drawline (0 , 300 , 600 , 300)
GraphicsWindow.Drawline (300 , 0 , 300, 600)
To draw the Black Line, write the following code
GraphicsWindow.Drawline (600 , 0 , 0 , 600 )
GraphicsWindow.Drawline (0 , 0 , 600 , 600)
GraphicsWindow.Drawline (0 , 300 , 600 , 300)
GraphicsWindow.Drawline (300 , 0 , 300, 600)
This code will set the color of the pen used to draw shapes on the GraphicsWindow To (Red).
GraphicsWindow.BackgroundColor = "Red"
GraphicsWindow.ForegroundColor = "Red"
GraphicsWindow.PenColor = "Red"
GraphicsWindow.Color = "Red"
This will set the width of the pen to be used to draw shapes on the GraphicsWindow To (20).
GraphicsWindow.Width = 20
GraphicsWindow.PenWidth = 20
GraphicsWindow.PenHeight = 20
GraphicsWindow.PenThickness = 20
To draw the Red Line, write the following code
GraphicsWindow.Drawline (600 , 0 , 0 , 600 )
GraphicsWindow.Drawline (0 , 0 , 300 , 300)
GraphicsWindow.Drawline (600 , 0 , 300 , 300)
GraphicsWindow.Drawline (300 , 0 , 300, 600)
This Code will show the GraphicsWindow to enable interactions with it.
GraphicsWindow.Appear ( )
GraphicsWindow.Display ( )
GraphicsWindow.Show ( )
GraphicsWindow.Open ( )
