# Straight Lines

Add the following blocks - you can set your pen color to any color you prefer

<figure><img src="https://2507214486-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LpUPSf3tCxHePJxNjfg%2Fuploads%2FvE6BAP9CVzxDGcHn74oA%2Fimage.png?alt=media&#x26;token=8836e90c-625c-465f-b424-6b7685e3d140" alt=""><figcaption></figcaption></figure>

We want to make sure that our straight line will go from left to right - so add the blue motion block that says point in direction 90 to the end of the code you already have

Now add the block to move forward 150 steps&#x20;

Run your code - you should have drawn a straight line from left to right on your stage

Now - see if you can use your Scratch knowledge (and some turn blocks) to draw ascending and descending stairs

<figure><img src="https://2507214486-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LpUPSf3tCxHePJxNjfg%2Fuploads%2FNGIyHv1dXDhFnQgizU8B%2Fimage.png?alt=media&#x26;token=ecd99c23-2747-40f7-81ee-fb2e9f77132b" alt=""><figcaption></figcaption></figure>

TIP: Instead of using the clear OR erase all block  - try picking the pen up as you set up and move around, putting the pen down when it is time to draw, and picking the pen up again once the drawing is done. This should help eliminate the random lines drawn all over the screen&#x20;


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://computational-thinking-in-room11.gitbook.io/room-112-dhs/cs-in-entertainment/exploring-pen-tools/straight-lines.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
