Skip to content

screenshots

Baptiste Lesquoy edited this page Nov 20, 2026 · 27 revisions

Capture and review illustrations

Use the application's intended release, a dedicated capture workspace and the tools available on the current system. Do not assume a monitor number, installation path, automation provider or model capability. Preserve the user's workspace and avoid saving accidental edits to shipped models.

Plan and capture

Identify what the image must demonstrate and reproduce that state in the application. Use an ordinary layout and readable resolution. Keep useful context so the reader can locate the control; use a detail crop when needed. For a popup or contextual menu, keep its trigger visible: include the toolbar button, parent menu, or simulation surface that opened it, as well as the complete popup. Do not crop a submenu away from its parent menu. Remove distracting tooltips, search filters, stale errors and unrelated windows unless they are the subject. Capture the command and its relevant result completely.

For a right-click context menu, make the origin of the click clear. Keep the clicked row or object in the frame and show the pointer or a small click marker when it is not already selected or highlighted. For a menu opened from a non-row surface, mark the click location if the surrounding interface does not make it obvious. Keep the pointer or marker away from menu labels and controls.

Use the available screenshot and accessibility tools. Accessibility helps identify controls and verify exact text; it does not prove that a panel is visible, unclipped or correctly framed. If no suitable capture tool/application is available, leave a precise screenshot-needed marker and report the missing capability instead of fabricating an image.

When only the application window is needed, capture it directly where the platform supports it:

python skills/gama-documentation/scripts/wiki_tools.py capture-window --title 'GAMA' --out tmp/gama-window.png

The command reports the image dimensions. Inspect the saved image: some applications or rendering surfaces may not be captured completely by the native window API. For visible menus and overlays, try capture-window --visible-window; it records screen pixels inside the target window bounds and can include overlapping windows or a colored outline visible on the display. Inspect all four edges and crop out such outlines from the published image while retaining the control and enough interface context. Do not resize the image to hide them. Linux X11 already captures the window's screen rectangle; Wayland requires an HCU frame and a crop. Keep a full-desktop HCU capture only when it provides suitable detail and the unrelated desktop can be excluded safely.

For recurring captures, follow the UI scenario workflow to reproduce the interaction and compare raw screenshots before applying publication crops or annotations.

Documented paths become captures

A sentence that walks the reader through the interface promises that they will see it. Wherever the prose names a route: Support > Install GAMA extensions..., an entry of a contextual menu, a toolbar button, a tab, a field to fill: an illustration has to show that route open, not only the panel it leads to. The menu with the entry, then the dialog with the field the reader is told to use. A page describing an installation, a preference or a command in words alone is incomplete: treat the route as a missing illustration and capture it, with the same seriousness as the facts of that page are checked against the running application.

Getting one is a short sequence, and each step is where these images are usually lost:

  1. Read the labels from the accessibility tree before deciding what to shoot. A menu exposes its items only once opened, and a menu built on demand (a catalogue discovered on the network) may be incomplete or show a loading message: that state is itself worth capturing and worth naming in the caption.
  2. Open it and keep it open. An open menu is a transient owned by the application, and on most desktop platforms anything that takes the foreground closes it: activate the window, click the menu bar item, wait for the item to exist, capture. Nothing else in between, and no pointer resting on the entry that is the subject: a tooltip over it makes the image useless.
  3. Frame the popup with enough of the window around it for the reader to locate it, then crop against the screenshot you have just looked at. python3 skills/gama-documentation/scripts/wiki_tools.py image raw.png shot.png --crop 144 27 672 1112 crops from measured pixels. A dialog can be captured as a client area; a menu cannot be found by its title, so it is captured with the window that owns it.
  4. Box what the sentence tells the reader to click or to type, and look at the result of each pass: the portable script accepts several --box and --arrow options in one call. An image of the destination does not cover a sentence about the route, and an image of the route does not cover a sentence about a field.
  5. When completing the route would change the machine (an installation, a deletion, a restart), open it as far as the last harmless page and cancel; say so in the caption. A captured route that was never completed is still the route the reader will follow.

To find the candidates, take the pages that contain a route and no image in the same section: the inventory script lists what every page references and what is missing (imageinventory.py), but it cannot tell whether a paragraph describing a menu path is illustrated, so that pairing is read by hand.

Inspect the final asset

Capture at native resolution and keep enough application context to locate the controls. A direct window capture avoids unrelated desktop content and is preferable when supported by the platform. Inspect the saved file at 100% and at its rendered wiki size. Retake the capture if the relevant labels are blurry, clipped or too small to read. Use a native detail crop when needed. Enlarging a low-resolution PNG does not recover detail.

Open the actual saved image when visual inspection is available. Check readability, clipping, context, accidental overlays, private information, and agreement with the surrounding explanation. OCR may supplement this inspection, especially for locating text; it is fallible and optional. After cropping or annotating, inspect the final saved file again, including its outer edges, so a display outline or capture overlay is not left in the published image. If visual inspection is unavailable, record what was verified and leave visual approval unresolved. A different operating system alone is not a reason to reject a screenshot.

For annotations or crops, preserve an original where useful and never alter the behavior or result being documented. Save under a descriptive name, write meaningful alt text and update the caption. Do not overwrite a shared illustration without inspecting all referring pages.

For GAMA Preferences documentation, capture the complete Preferences window for each tab, including its tab bar and bottom commands. Do not crop a tab to its inner pane or publish a separate strip of bottom buttons when the full window already shows them. Use a detail crop only when a specific control remains hard to locate in the complete view.

Capture with the default settings

Unless the maintainer asks for something else, every screenshot shows GAMA as a fresh install looks: default theme, default colours, default layout, no filters, no leftover editors. A capture taken under personal settings documents that person's configuration, not the product, and the prose checked against it will be wrong for the reader. When the image must stay comparable from one build to the next, record the interaction as a UI scenario: its context block is where this state (theme, locale, window size, display scale, fixture) is declared and held fixed.

Put the application back to its defaults

  1. Support > Preferences (there is no Window or Help menu entry).
  2. Press Revert to defaults in the bottom bar. The view asks "Do you want to revert all preferences to their default values ? A restart of the platform will be performed immediately". Confirm; GAMA restarts and reopens the workspace selector.
  3. Re-enter the capture workspace in the "GAMA Models Workspace" dialog (leave Remember unchecked so the user's own last workspace is not disturbed) and confirm any "the workspace appears to be corrupted" prompt: cleaning touches only the workspace metadata.

The view's bottom bar also holds Advanced... (the preferences inherited from Eclipse), Import... and Export to GAML / Export to preferences. The last one is a cheap way to leave a readable trace of the exact set of values a campaign of captures was made with.

Verify menu routes and shortcuts against the target build; labels and key bindings can vary by platform and focus.

Know where those values live before touching them: GAMA keeps its preferences in the user node of the Java runtime (JREPreferenceStore), which belongs to the account, not to the workspace. They are therefore shared by every workspace and every installed version of GAMA that runs as that user. A revert is not local to the capture workspace, so leave a trace of the state you started from and restore it when the campaign ends: use Export to preferences in the bottom bar of the preference view before you change anything and Import... afterwards. Reach for the operating system's own storage of that node (in the operating system's own store of Java user preferences) only to read it: hand-editing it bypasses the restart logic of the product and can leave the machine in a state its owner did not choose.

Change one setting for a given capture

Some illustrations legitimately require a non-default state (a preference that hides a panel by default, the dark theme, a visible seed, monitors in the parameters view). Reach it through the least invasive route that produces it, and say in the caption which state is shown.

  1. From GAML, when the state concerns a running experiment. Every preference of the store is published as a variable of the gama species, so a model can write:

    experiment Demo target: sim {
       init {
          gama.pref_monitors_in_parameters <- true;
       }
    }
    

    The assignment snapshots the value the preference had beforehand and applies the new one in memory only (Pref.set, no call to the store, which would need Pref.save); closing the experiment restores the snapshot (ExperimentSpecies.dispose to PlatformAgent.restorePrefs). It is therefore the recommended way to show what a parameter does to the interface: the capture gets its state, the machine keeps its owner's settings, and no restart is involved. Two limits: a preference whose effect is applied at launch (marked "requires restart") will not react, and a view already open may need a refresh to show the restored value. Use the contextual menu of a line in the preference view to read the exact GAML name.

  2. The preference view, when the state must be visible in the view itself (a capture of a pane, a ticked box). Open Support > Preferences, pick the tab and the group, and use the control of the line (a Yes/No pair, a field, a slider, a combo). The cross at the right of a line only removes it from the view; it does not reset it. This route persists: the value lands in the user node and survives the session, so restore it when the campaign ends.

  3. A JVM system property, when the value must exist before the platform starts: a system property has the highest priority when a preference is read (GamaPreferenceStore), so -Dpref_<name>=<value> in the VM arguments (or in Gama.ini) produces the state for that launch only, without touching the store. Costs an edit and a restart.

  4. The view's own ... menu, for what the preference view does not expose at all: the navigator toggles Metadata, Hidden files, Model elements, Plugin, Modification date and Only titles are hidden preferences (.hidden() in the source) reachable only there; Model elements is the one that adds the Contents node to a model, so a capture of that node needs it, and the caption must then say the box was ticked. That control is icon-only and invisible to accessibility, so it takes a measured pixel click.

Whatever the route, remember that settings marked "(requires restart)" (the theme and its backgrounds, among others) only take effect after GAMA is restarted, and that a restart costs the whole navigation state: plan the captures that need the same state together.

Check the state immediately before shooting

Theme light; the capture workspace open and its library re-linked; the Validation view reporting no error and no warning on the library (a single warning turns a circle orange); the navigator's filter field empty; only the editors and views the page talks about; the pointer parked away from the subject so no tooltip falls into the frame.

Inventory and review records

python skills/gama-documentation/scripts/docs.py images --out tmp/images.json
python skills/gama-documentation/scripts/externallinks.py --out tmp/external-links.json

The first report lists local resources and their referring pages/lines, missing files and potential orphans. The second includes remote images alongside external links. Neither determines visual quality or automatically deletes or downloads assets.

The existing .goose/inventory/image-verdicts.md stores previous manual decisions. Preserve it as review evidence. Recheck decisions after changing an image or target release: a path alone does not identify immutable content. Record build/platform, reason and an image hash when maintaining new review evidence. Do not treat OCR guesses as manual approval.

Use the portable tools for capture and image processing.

Annotate, and measure before you crop

A screenshot is an argument, not a view. Three rules decide whether it is usable.

  1. Subject first. The element the sentence talks about occupies the image. A panel shown as a strip, a view whose content is empty, or a crop that mostly shows the neighbouring pane does not illustrate anything: discard it and change the state instead.
  2. Measure the crop on the screenshot you have just looked at. Never reuse an offset remembered from a previous crop or taken from another capture: the panes move, the selection changes the row heights, and the result is silently wrong. Capture, inspect the capture, then crop with those coordinates, then inspect the cropped file before publishing it.
  3. Annotate only when it helps locate the subject. If the element the sentence names could be missed, put a coloured box around it. For a relationship (a node in the navigator corresponds to a button in the editor, a menu entry opens a dialog), draw an arrow only if the relationship is not already clear. Inspect the result after annotation. Keep a box tight on the subject, not on the surrounding column.

Annotations are optional. Add a box only when the subject could be hard to locate in its surrounding interface, such as a control near an edge or one entry within a long menu or list. When an image documents a route into a submenu, box the parent entry if the route would otherwise be hard to follow, while keeping the complete parent menu and submenu visible. Do not box an obvious subject that already occupies a dedicated, central dialog or panel. When a box helps, fit it closely around the relevant control or row, leave all text and controls unobscured, and check its placement at the final image size.

Name the file after what it shows, and make the caption say what the image proves. If the annotation would have to be invented because the interface does not show the claimed link, the text is the thing to fix: record it in the audit document rather than staging a misleading picture.

  1. About GAMA
  2. What's new (Changelog)
  3. Migration Guide (2025-06 → 2026-11)
  1. Installation and Launching
    1. Installation
    2. Launching GAMA
    3. Updating GAMA
    4. Installing Plugins
  2. Workspace, Projects and Models
    1. Navigating in the Workspace
    2. Changing Workspace
    3. Importing Models
  3. Editing Models
    1. GAML Editor (Generalities)
    2. GAML Editor Tools
    3. Validation of Models
  4. Running Experiments
    1. Launching Experiments
    2. Experiments User interface
    3. Controls of experiments
    4. Parameters view
    5. Inspectors and monitors
    6. Displays
    7. Batch Specific UI
    8. Errors View
    9. Experiment agent: GAML controls and status
    10. Interactive console
  5. Running Headless
    1. Getting Started
    2. Headless Legacy
    3. Headless Batch
  6. Exporting models and projects
    1. Playable models (.gamx)
    2. Editable project archives (.gamp)
  7. Preferences
  8. gama platform agent
  9. Troubleshooting
  1. Introduction
    1. Start with GAML
    2. Organization of a Model
    3. Basic programming concepts in GAML
  2. Manipulate basic Species
  3. Global Species
    1. Regular Species
    2. Defining Actions and Behaviors
    3. Interaction between Agents
    4. Attaching Skills
    5. Inheritance
  4. Defining Advanced Species
    1. Grid Species
    2. Graph Species
    3. Mirror Species
    4. Multi-Level Architecture
  5. Defining GUI Experiment
    1. Defining Parameters
    2. Defining Displays Generalities
    3. Defining Charts
    4. Defining Monitors and Inspectors
    5. Defining Export files
    6. Defining User Interaction
  6. Classes and Objects
    1. Class Definition and Instantiation
    2. Attributes and Actions
    3. Inheritance
    4. Virtual Classes
    5. Advanced Features
  7. Exploring Models
    1. Run Several Simulations
    2. Batch Experiments
    3. Exploration Methods
  8. Optimizing Models
    1. Runtime Concepts
    2. Analyzing code performance
    3. Optimizing Models
  9. Multi-Paradigm Modeling
    1. Control Architecture
    2. Defining Differential Equations
  1. Manipulate OSM Data
  2. Cleaning OSM Data
  3. Diffusion
  4. Using Database
  5. Using Dataframes
  6. Using FIPA ACL
  7. Using BDI with BEN
  8. Using Driving Skill
  9. Manipulate dates
  10. Manipulate lights
  11. Using comodel
  12. Save and restore Simulations
  13. Using network
  14. Writing Unit Tests
  15. Ensure model's reproducibility
  16. Going further with extensions
    1. Calling R
    2. Using Graphical Editor
    3. Using Git from GAMA
  1. Built-in Species
  2. Built-in Skills
  3. Built-in Architecture
  4. Statements
  5. Data Type
  6. File Type
  7. Stats Extension
  8. Sound Extension
  9. BDI Extension
  10. FIPA Skill
  11. Expressions
    1. Literals
    2. Units and Constants
    3. Pseudo Variables
    4. Variables And Attributes
    5. Operators (Definition)
    6. Operators [A-A]
    7. Operators [B-C]
    8. Operators [D-H]
    9. Operators [I-M]
    10. Operators [N-R]
    11. Operators [S-Z]
  12. Exhaustive list of GAMA Keywords
  1. Installing the development version
  2. Introduction to GAMA Java API
    1. Architecture of GAMA
    2. IScope
  3. Developing Extensions
    1. Developing Plugins
    2. Developing Skills
    3. Developing Statements
    4. Developing Operators
    5. Developing Types
    6. Developing Species
    7. Developing Control Architectures
    8. Index of annotations
  4. Using GAMA flags
  5. Export plugin : Technical Documentation
  6. Creating a release of GAMA
  7. Documentation generation
  8. Desktop startup and deferred initialization

  1. Predator Prey
  2. Road Traffic
  3. Incremental Model
  4. Luneray's flu
  5. BDI Agents
  6. Forager RL
  7. SIR Analysis

  1. Team
  2. Projects using GAMA
  3. Scientific References
  4. Training Sessions

Resources

  1. Videos
  2. Conferences
  3. Pedagogical materials

Clone this wiki locally