Skip to content
Aaron Liddiment edited this page Nov 1, 2015 · 1 revision

int Size();

This will return the number of elements in the CRGB led array.

int Width();

This returns the width (X) of the matrix.

int Height();

This returns the height (Y) of the matrix.

ShiftLeft();

This will shift the all the leds left one column and blank the right edge.

ShiftRight();

This will shift the all the leds right one column and blank the left edge.

ShiftUp();

This will shift the all the leds up one line and blank the bottom edge.

ShiftDown();

This will shift the all the leds down one line and blank the top edge.

DrawLine(int16_t x0, int16_t y0, int16_t x1, int16_t y1, CRGB Col);

Draws a line from (x0,y0) to (x1,y1) using Col.

DrawRectangle(int16_t x0, int16_t y0, int16_t x1, int16_t y1, CRGB Col);

Draws a rectangle frame with bottom left corner (x0,y0) and upper right corner of (x1,y1) using Col.

DrawCircle(int16_t xc, int16_t yc, uint16_t r, CRGB Col);

Draws a circle frame with a centre (xc,yc) and a radius (r) using Col.

DrawFilledRectangle(int16_t x0, int16_t y0, int16_t x1, int16_t y1, CRGB Col);

Draws a filled rectangle with bottom left corner (x0,y0) and upper right corner of (x1,y1) using Col.

DrawFilledCircle(int16_t xc, int16_t yc, uint16_t r, CRGB Col);

Draws a filled circle with a centre (xc,yc) and a radius (r) using Col.

HorizontalMirror();

Mirrors the left side to the right side. If there are an odd number of columns the centre column will not be mirrored.

VerticalMirror();

Mirrors the bottom half to the top half. If there are an odd number of rows the centre row will not be mirrored.

QuadrantMirror();

Mirrors the bottom left quadrant to the bottom right quadrant, then mirrors the bottom half to the top half.

QuadrantRotateMirror();

Mirrors the bottom left quadrant with a 90 degree turn to the top left quadrant and repeats with the top and bottom right quadrants.

TriangleTopMirror();

Mirrors the triangle based in the top left corner to the bottom right corner. Works best with equal sized matrices that have an odd number of rows / columns.

TriangleBottomMirror();

Mirrors the triangle based in the bottom left corner to the top right corner. Works best with equal sized matrices that have an odd number of rows / columns.

QuadrantTopTriangleMirror();

Based on the bottom left quadrant it mirrors the top left corner triangle to the bottom right corner and then it mirrors this to the other three quadrants. Works best with equal sized matrices that have an odd number of rows / columns.

QuadrantBottomTriangleMirror();

Based on the bottom left quadrant it mirrors the bottom left corner triangle to the top right corner and then it mirrors this to the other three quadrants. Works best with equal sized matrices that have an odd number of rows / columns.