3#include "../Animation.h"
4#include "../../Objects/SolidCube.h"
5#include "../../Materials/LightMaterial.h"
6#include "../../Signals/FunctionGenerator.h"
8#include "../../Materials/StripeMaterial.h"
9#include "../../Materials/SpiralMaterial.h"
10#include "../../Materials/CombineMaterial.h"
11#include "../../Materials/Animated/SpectrumAnalyzer.h"
30 RGBColor spectrum1[6] = {
RGBColor(255, 255, 0),
RGBColor(0, 0, 0),
RGBColor(0, 255, 255),
RGBColor(0, 0, 0),
RGBColor(255, 0, 255),
RGBColor(0, 0, 0)};
31 RGBColor spectrum2[6] = {
RGBColor(255, 0, 0),
RGBColor(0, 0, 0),
RGBColor(0, 255, 0),
RGBColor(0, 0, 0),
RGBColor(0, 0, 255),
RGBColor(0, 0, 0)};
32 RGBColor spectrum3[6] = {
RGBColor(255, 0, 0),
RGBColor(255, 255, 0),
RGBColor(0, 255, 0),
RGBColor(0, 255, 255),
RGBColor(0, 0, 255),
RGBColor(255, 0, 255)};
42 scene.AddObject(
cube.GetObject());
59 void FadeIn(
float stepRatio)
override {}
101 cube.GetObject()->ResetVertices();
102 cube.GetObject()->GetTransform()->SetScale(
Vector3D(1000, 1000, 1));
103 cube.GetObject()->UpdateTransform();
void Initialize() override
FunctionGenerator fGenMatOpacity
FunctionGenerator fGenMatPeriod
FunctionGenerator fGenMatPos
void FadeIn(float stepRatio) override
void FadeOut(float stepRatio) override
void Update(float ratio) override
FunctionGenerator fGenMatBend
FunctionGenerator fGenMatRot
FunctionGenerator fGenMatWidth
FunctionGenerator fGenMatSize
uint8_t GetAccentBrightness()
FunctionGenerator fGenMatAmplitude
FunctionGenerator fGenSelection
A class to generate various waveform functions with customizable parameters.
@ Triangle
Triangle waveform.
float Update()
Updates and calculates the next value of the waveform.
Represents an RGB color and provides methods for manipulation.
Generates a spiral pattern with configurable properties.
void SetPositionOffset(Vector2D positionOffset)
Sets the position offset for the spiral.
void SetRotationAngle(float rotationAngle)
Sets the rotation angle for the spiral.
void SetBend(float bend)
Sets the bending factor of the spiral arms.
Generates striped patterns with configurable properties.
void SetStripeWidth(float stripeWidth)
Sets the stripe width.
void SetPositionOffset(Vector2D positionOffset)
Sets the position offset for the pattern.
void SetRotationAngle(float rotationAngle)
Sets the rotation angle for the pattern.
void SetWaveAmplitude(float waveAmplitude)
Sets the wave amplitude for the sinusoidal effect.
void SetWavePeriod(float wavePeriod)
Sets the wave period for the sinusoidal effect.
Represents a 2D vector (X, Y) and provides methods for vector arithmetic.
Represents a 3D vector (X, Y, Z) and provides methods for vector arithmetic.