CircularSectionF


Project maintained by profezzorn Hosted on GitHub Pages — Theme by mattgraham

Usage 🔗

CircularSectionF<POSITION, FRACTION>

Arguments 🔗

Description 🔗

Returns 32768 for LEDs near the position with wrap-around. Could be used with MarbleF<> for a marble effect, or with Saw<> for a spinning/colorcycle type effect. Example: If POSITION = 0 and FRACTION = 16384, then this function will return 32768 for the first 25% and the last 25% of the blade and 0 for the rest of the LEDs.

See Also 🔗

MarbleF

Source Link 🔗

https://github.com/profezzorn/ProffieOS/blob/6f8add544c627172ad2dd698c90e5e55078a420a/functions/circular_section.h#L6