HitLib 1.5.0
VEX V5 LED animation library for PROS
Loading...
Searching...
No Matches
hitlib::LedStrand::Composition Struct Reference

A named, reusable custom animation: layers over a driver table and a clock. More...

#include <led_strand.hpp>

Public Attributes

const char * name
const Layer * layers
 Drawn in order; layer 0 is the bottom.
uint8_t layerCount
const Driver * drivers
uint8_t driverCount
uint32_t loopMs
 0 means the timeline never wraps.
uint32_t bgColor
 What the frame starts as, under layer 0.

Detailed Description

A named, reusable custom animation: layers over a driver table and a clock.

Like Profile and MusicTrack, a Composition is pointed at rather than copied, so it and everything it points at must outlive the strand. Pattern Studio emits all of it as namespace-scope constants.

Member Data Documentation

◆ name

const char* hitlib::LedStrand::Composition::name

◆ layers

const Layer* hitlib::LedStrand::Composition::layers

Drawn in order; layer 0 is the bottom.

◆ layerCount

uint8_t hitlib::LedStrand::Composition::layerCount

◆ drivers

const Driver* hitlib::LedStrand::Composition::drivers

◆ driverCount

uint8_t hitlib::LedStrand::Composition::driverCount

◆ loopMs

uint32_t hitlib::LedStrand::Composition::loopMs

0 means the timeline never wraps.

◆ bgColor

uint32_t hitlib::LedStrand::Composition::bgColor

What the frame starts as, under layer 0.