Can anyone help with this?

Can anyone help with this?

#include <FastLED.h> // include the FastLED library code

#define DATA_PIN 2
#define NUM_LEDS 50
#define MAX_BRIGHTNESS 255
#define BRIGHTNESS 255 // MAX is 255
#define LED_TYPE WS2811

CRGB leds[NUM_LEDS+1];

// runs once when program starts (see setup code)
void setup() {
Serial.begin(9600); //enables serial output for debugging
// initialize WS2811
FastLED.addLeds<LED_TYPE, DATA_PIN, RGB>(leds, NUM_LEDS).setCorrection(TypicalLEDStrip);
FastLED.setBrightness(BRIGHTNESS);
leds_init();
}

// loops continuously (see loop code)
void loop()
{
step(1);
showColors();
step(2);
showFade();
step(3);
sequence0();
step(4);
for ( int x = 0; x < 4; x=x+1 )
sequence1();
leds_init();
delay(5000);
}

// turn off all the LEDs
void leds_init()
{
for ( int x = 0; x < NUM_LEDS + 1; ++x )
leds[x] = CRGB::Black;
FastLED.show();
}

// blink LED[0] to indicate which step of the challenge we are at
void step(int num) {
leds_init();
for ( int x = 0; x < num; x=x+1 ){
leds[0] = CRGB::White;
FastLED.delay(300);
leds[0] = CRGB::Black;
FastLED.delay(300);
}
}

//////////////////////////////////////////////////////////////
// START HERE
//////////////////////////////////////////////////////////////

// SHOW COLORS
// For all 50 LEDs, use HSV Hue to cycle through all the
// colors of the rainbow.
// - vary the Hue for all value from 0 to 255
// - use 255 for saturation and value
// Show all LEDs at each Hue for 30 milliseconds.
// Your function should use two for loops.
void showColors() {
// YOUR CODE GOES HERE
}

// SHOW FADE
// For all 50 LEDs, use HSV Value (aka brightness) to fade
// first red, then green, and finally blue from 255 downto 5 in
// steps of 5.
// Store the Hues for the three different colors in an integer
// array. Access this integer array using a loop index variable.
// Your function should use three for loops.
// Show all LEDs at each brightness level for 30 milliseconds.
void showFade() {
// YOUR CODE GOES HERE
}

// SEQUENCE 0
// Use HSV colors and change hues, saturation, and value in the
// sequence specified below.
// For each of two saturation values 155, 255:
// show the three colors red, green, and blue, such that the 50
// LEDs light up one at a time in 30 millisecond intervals in
// increasing brightness starting at 10 and ending at 255
// (i.e. 10,15,20,…,255).
// Use integer arrays for your hue and saturation values.
// With the LEDs layed out with the even LEDS on top and the odd
// LEDs on the bottom, the LEDs should light up from left to right
// on the even side and then from right to left on the odd side.
void sequence0()
{
// YOUR CODE GOES HERE
}

// SEQUENCE 1
// Use the random() function to pick two random colors (color0 and color1)
// and light up the LEDs as specified below.
// With the LEDs layed out with the even LEDS on top and the odd
// LEDs on the bottom, use color0 to light up the two outermost LEDs on the
// even side at the same time you light up the center LED on the odd side.
// Next light up the next two outermost LEDs on the even side at the same time
// you light up the LEDs next to the center LEDs on the odd side. Continue to
// work your way from the outside in on the even side and from
// the inside out on the odd side until all LEDs are lit. Now using color1,
// do the same thing except light up the even side from the inside out and the
// odd from the outside in.
void sequence1()
{
// YOUR CODE GOES HERE
}

What are trying to do? This looks like an assignment for a class – are you supposed to be figuring it out on your own?

@Matt_Porras When sharing code please put on http://gist.github.com and share the link.

In addition, show us what you’ve tried to do (on http://gist.github.com) and we can provide some tips. For ‘SHOW COLORS’, I’d be assigning colours like this:

leds[i] = CHSV(hueval, 255, 255);

and wrapping that in a couple of loops.

I’d love to find a class that focused predominantly on the subject of LEDs… rather than ‘independent study’