Code Error in usermod_word_clock_matrix.h

Hello all, I hope you are doing well. I am trying to code and flash a ESP32 using some custom user mods. But in the included usermod “word-clock-matrix” there are multiple errors present, all results in the same reason. The errors are present in lines 34 & 41. The reason for the error is “class “WS2812FX” has no member “Segment”” I have included a snippet of the code here, but the original code can be found on Aircoookie’s GitHub, since I have changed nothing. Anything is very much appreciated. Even if you are unable to help, I appreciate your time and effort in trying. Thank you!

Blockquote
public:
void setup()
{
Serial.println(“Hello from my usermod!”);

//saveMacro(14, "A=128", false);
//saveMacro(15, "A=64", false);
//saveMacro(16, "A=16", false);

//saveMacro(1, "&FX=0&R=255&G=255&B=255", false);

//strip.getSegment(1).setOption(SEG_OPTION_SELECTED, true);

//select first two segments (background color + FX settable)
WS2812FX::Segment &seg = strip.getSegment(0);
seg.colors[0] = ((0 << 24) | ((0 & 0xFF) << 16) | ((0 & 0xFF) << 8) | ((0 & 0xFF)));
strip.getSegment(0).setOption(0, false);
strip.getSegment(0).setOption(2, false);
//other segments are text
for (int i = 1; i < 10; i++)
{
  WS2812FX::Segment &seg = strip.getSegment(i);
  seg.colors[0] = ((0 << 24) | ((0 & 0xFF) << 16) | ((190 & 0xFF) << 8) | ((180 & 0xFF)));
  strip.getSegment(i).setOption(0, true);
  strip.setBrightness(64);
}

}

Blockquote

Just before we waste time to verify as there are two versions of the usermod , you are talking about this ?

Actually, it is this file of code from lines 34-41. Thanks.