Writing Larger Programs
We're getting to the point where it's inconvenient to type programs into the console. In this chapter we'll learn about two tools for writing larger programs:
- saving programs to a file so we don't have to type code over and over again;
- giving names to values so we can reuse them.
If you run the examples from the SBT console within Doodle they will just work. If not, you will need to start your code with the following imports to make Doodle available.
import doodle.core._ import doodle.image._ import doodle.syntax.all._ import doodle.image.syntax.all._ import doodle.java2d._