![simple drawing images simple drawing images](https://artprojectsforkids.org/wp-content/uploads/2020/09/Fox-Simple-791x1024.jpg)
Let’s look at a few of the colors that Small Basic supports. You can use a range of colors in the graphics window to create colorful shapes. To specify the parameters of the DrawLine operation, you must include the x-coordinate and the y-coordinate of one end of the line and the x-coordinate and the y-coordinate of the other end of the line.To draw a line, you specify the color of the line by using the PenColor property, and you specify the location, length, and angle of the line by using the DrawLine operation and its parameters.The same values for the parameters of the FillEllipse operation as you did for the DrawEllipse operation. For example, you can draw a circle by specifying the same value for the width and height of the ellipse. Just as you did with the DrawRectangle operation, you specify parameters that determine the location, size, and shape of the ellipse.To draw an ellipse and fill it with a different color, you specify the color by using the BrushColor property, draw the ellipse by using the DrawEllipse operation, and fill the ellipse with the FillEllipse operation.If you do not specify a fill color with the BrushColor property, the shape is filled with slate blue, as the output shows.To fill the rectangle with a color, you use the FillRectangle operation, and you specify the same parameters as you specified for the DrawRectangle operation.These parameters include not only the x-coordinate and the y-coordinate of the rectangle, which determine the location of its upper-left corner, but also the width and the height of the rectangle, which determine its size and proportions.To draw a rectangle, you use the DrawRectangle operation, and you specify its parameters, which are values that determine how the rectangle looks.You can also use these properties later to specify a different border color and border thickness for your next shape.
![simple drawing images simple drawing images](https://craftwhack.com/wp-content/uploads/2018/02/pens-pencils-and-erasers-758x569.jpg)
You then use the PenColor and PenWidth properties to specify the border color and border thickness of the first shape that you want to draw.When you set the width and the height, make sure to specify an area that is large enough to hold all of the shapes that you want to draw.You start by setting the title, the width, and the height of the graphics window.PenWidth?By specifying this property,you can draw shapes whose borders are whatever thickness you choose.īrushColor?By specifying this property, you can fill the shapes that you draw with whatever colors you choose. PenColor?By specifying this property, you can draw shapes whose borders are whatever colors you choose. You can enhance the shapes that you create if you specify certain properties of the When you run the program below, a graphics window appears with the properties that you specified, instead of the black text window. Height, Width, and BackgroundColor properties, respectively. Similarly, you can modify the height, width, and background color of the graphics window by specifying the Title property of the GraphicsWindow object.
![simple drawing images simple drawing images](https://www.drawingforall.net/wp-content/uploads/2018/03/How-to-draw-a-cute-chibi-easy.jpg)
For example, you can set its title by using the You can also modify the look and feel of the graphics window by specifying a range of properties. Similarly, you can hide the graphics window by using the GraphicsWindow.Hide() statement. You can display the graphics window by typing the statement GraphicsWindow.Show() in the editor window. GraphicsWindow.Title = "A Graphics Window"