The graphics library provides the ability to split the screen into several "ViewPorts" each with its own colors and resolutions. See the Amiga ROM Kernel Manual: Libraries for more information.