Layer2Scroll
Directory actions
More options
Directory actions
More options
Layer2Scroll
Folders and files
| Name | Name | Last commit date | ||
|---|---|---|---|---|
parent directory.. | ||||
Source in folder: Tests/Graphics/Layer2Scroll/ In this test the X/Y offset of Layer2 is tested (and non-trivial clipping). Layer2 is enabled, filled with colour 1 (set to $FC, set as global transparent colour) ULA classic is under Layer2, white paper, blue ink There are five horizontal and five vertical 40px lines draw in the ULA layer. All of these are surrounded by light-blue "dotted" lines in Layer2, and at the ends of ULA lines blue-ish black 20px lines in Layer2 connect (starting with 2px overdraw and drifting away by 1px per line (having gap at fourth and fifth line). There are also X/Y axis "rulers" starting in original [0,0] point, they are going by 8 (light blue) / 32 (blueish black tip) pixels. The point is, those lines connect correctly thanks to the X/Y scroll set to [196,133]. Without X/Y HW scroll implemented the Layer2 lines are all over place. update: there is now animation going from [0,0] to final [196,133] in 128 steps (~2.5s). update 2: the clip windows (ULA+L2) are set to [8,8] -> [239,175] There are stripes in Layer2 which should be fully clipped when scroll is at [196,133] update 3: - press R to reset scroll coordinates - press R during blue border part (auto-scroll) to skip to user-controlled mode (green border) - added new Layer2 modes 320x256x8bpp and 640x256x4bpp (press M to switch modes) - press C to switch off clipping (setting nextreg $18 to non-standard [0, 255, 0, 255])