> For the complete documentation index, see [llms.txt](https://elishai.gitbook.io/retinal-stimulation-modeling-environment/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://elishai.gitbook.io/retinal-stimulation-modeling-environment/model-specification/visual-stimulation.md).

# Visual Stimulation

In this specification layer, we define visual stimuli.&#x20;

In the following XML morphology specification file, we define an input stimulus targetting cell population "0" (defined in the previous layer). Each visual stimulus is parametrized with different fields. Here we specify an alternative (bright / dark) expanding rings of light. This stimulus is defined using:

* **Field:** the size of the stimulus, assuming a square area. The value of the field specifies the size of one of its sides.
* **Frequency:** the bright / dark alternation frequency  (in Hz)
* **Blocked field**: the radius of a blocked round field, placed at the stimulus' center (relevant to some experimental settings in which the soma is not iluuminated)
* **x0, y0**: the location of the stimulus' center
* **Delay:** allowing the stimulus to initiate following some delay

```
<visual_stimulation xmlns = "RSME.simulation_parameters">

  <stimulation_description> Alternating expanding rings of light </stimulation_description>
 
  <stimulation type = 'alternating_expanding_circles'>
      <tgt_population> 0                </tgt_population>
      <synapse>        'light_synapse'  </synapse>
      <field>          315              </field> 
      <frequancy>      4                </frequancy> 
      <blocked_field>  0                </blocked_field> 
      <x0>             135              </x0>
      <y0>             125              </y0>
      <delay>          0                </delay>
  </stimulation>
    
</visual_stimulation>
```

There are many other stimuli available, including:

* Collapsing rings of light
* Gratings
* Moving / alternating bars
* Moving bars with background noise
* Moving bars with background dots

{% hint style="info" %}
Additional visual stimuli can be defined in the Stimuli\_visual\_pattern.py file
{% endhint %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://elishai.gitbook.io/retinal-stimulation-modeling-environment/model-specification/visual-stimulation.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
