Variable flavor light receptor 
  1. Description

    This neuron outputs intensity of type "light" signal in the point where this neuron is.

    Initially this neuron searches for light with flavor = 0. If the source of such signal is near enough (limit of this intensity is defined with the parameter li), or there is no such signal, then this neuron sets itself for searching for light with the "next" flavor value. The next flavor value depends on the flavor interval value parameter, i.

    If the parameter i has the default value of 1, then after searching for flavor = 0, the receptor will be searching for flavor = 1 (as 0 + i = 0 + 1), and later for flavor = 2, and so on. Once the maximal flavor value (4) is achieved, this neuron will set itself for light with flavor = 0 (initial).

  2. Neuron properties

    This neuron has four properties determining its activity:

    • Distance – Distance for receiving signal, named d, value range 0.01..1e99, default 1e99
        It determines the range of this receptor.
    • Limit – Signal strength limit, named li, value range 0.01..100.0, default 2.0
        If the signal with the given flavor value is so close that intensity of this signal (returned by the function Neuro.signals.receiveFilter("light",...)) is greater than the Limit parameter, then this flavor is considered "found" and the neuron sets itself for the next flavor value.
    • Interval – Next flavor interval, named i, value range 0.01..4.0, default 1.0
        Subsequent flavor values are determined by the Interval parameter. Sample sequences of target flavors, depending on Interval:
        • i = 1: searching for flavor: 0, 1, 2, 3, 4, 0, 1, 2 ...
        • i = 0.5: searching for flavor: 0, 0.5, 1, 1.5, 2, 2.5, 3, 3.5, 4, 0, 0.5, 1, 1.5, 2 ...
        • i = 3: searching for flavor: 0, 3, 0, 3, 0, 3, 0 ...
    • Precision – Precision for flavour of received signal, named p, value range 0.0..4.0, default 0.0
        Precision is the last parameter of the Neuro.signals.receiveFilter("light",...) function. It tells what range of flavors is searched for. For example, if p = 1, then we are searching for light signal with flavor in the range [actual flavor value – 1; actual flavor value + 1].
  3. Sample usage

    The neuron can be used by any creature for finding a sequence of points, objects or creatures. Its activity is very similar to the SeeLight neuron. For example, it can be used to make a creature move between two points (there and back), between three points (making triangles), and so on. One example of this situation is to find checkpoints (like in racing games).

    Use the neuro script and the genotypes to play with this receptor: put light emitters of various flavor around (e.g. in a big circle), turn off death and see the food finder follow them in a specific order.