pixled-lib  1.0
Public Member Functions | List of all members
pixled::animation::Blink Class Reference

#include <animation.h>

Inheritance diagram for pixled::animation::Blink:
Inheritance graph
[legend]
Collaboration diagram for pixled::animation::Blink:
Collaboration graph
[legend]

Public Member Functions

color operator() (led l, time t) const override
 
- Public Member Functions inherited from pixled::Function< Blink, color, color, time >
 Function (Fcts &&... fcts)
 
const base::Function< typename std::tuple_element< i, decltype(args)>::type::Type > & arg () const
 
std::tuple_element< i, decltype(args)>::type::Type call (led l, time t) const
 

Additional Inherited Members

- Public Types inherited from pixled::Function< Blink, color, color, time >
using Type = typename base::Function< color >::Type
 
- Public Types inherited from pixled::base::Function< color >
typedef color Type
 
- Protected Member Functions inherited from pixled::Function< Blink, color, color, time >
base::Function< color > * copy () const override
 
- Protected Attributes inherited from pixled::Function< Blink, color, color, time >
std::tuple< const FctWrapper< Args >... > args
 

Detailed Description

Blink animation.

Return values
colorblinked animation
Parameters
colororigin animation
timeperiod
Examples
pixled/animation/blink.cpp, pixled/animation/sequence.cpp, and pixled/conditional/conditional.cpp.

Member Function Documentation

◆ operator()()

color pixled::animation::Blink::operator() ( led  l,
time  t 
) const
overridevirtual

Computes the value of this Function for led l at time t.

Parameters
lled
ttime
Returns
Result of this Function, evaluated on led l at time t. Notice that evaluating a function usually requires the recursive evaluation of other Functions (that are actually parameters of this function) until a Constant is reached for example.

Implements pixled::base::Function< color >.


The documentation for this class was generated from the following files: