Lesson goal: Change the colors of your plots
Previous: Drawing pixels
| Next: Clearing the screen
You can change the plotting color of your graphics using the
color works like this:
Move the mouse over a dotted box for more information.
Now you try. Plot some pixels using
pset, but just before the
pset line, choose a color for yourself using the
Type your code here:
Does your code work? Want to run it on your iPhone?
Here's your code:
- Use [Control]-[C] (Windows) or [⌘]-[C] (MacOS) to copy your code.
- Paste it using [Control]-[V] (Windows) or [⌘]-[V] (MacOS) into
- Then click the "Use on iPhone" button that you'll see.