question about Neopixel code

can someone pls tell me if the bit of code below is a type of array? it dosnt have the format of array but, im sure its normally used in a for loop, which begs the question where the values for each pixel is stored if it isnt an array of some sort.

strip.setPixelColor(n, red, green, blue);

It is not an array. It is a call to the setPixelColor() of the neopixel library with 4 parameters. The first is the number of the LED to be set and the other 3 are values for the red, green and blue components of the colour to be shown by the LED.

The LED number would often (but not always) be taken from a for loop index variable and the colour values from elsewhere which could be one or more arrays.

If you had posted a full program then more advice would have been given.

UKHeliBob:
It is not an array.

But it is a function that fills one array element.

The Neopixel lib uses an array (three bytes for each led), .show() transfers the array to the strip.

Whandall:
But it is a function that fills one array element.

The Neopixel lib uses an array (three bytes for each led), .show() transfers the array to the strip.

the constructor defines the size of the NeoPixel array:

  // Constructor: number of LEDs, pin number, LED type
  Adafruit_NeoPixel(uint16_t n, uint8_t p=6, neoPixelType t=NEO_GRB + NEO_KHZ800);

that array may be either three (RGB) or four (RGBW) bytes for each led:

  uint16_t
    numLEDs,       // Number of RGB LEDs in strip
    numBytes;      // Size of 'pixels' buffer below (3 or 4 bytes/pixel)