Tiny update
This commit is contained in:
@@ -20,7 +20,7 @@
|
|||||||
|
|
||||||
//based on: https://gist.github.com/StefanPetrick/9c091d9a28a902af5a7b540e40442c64
|
//based on: https://gist.github.com/StefanPetrick/9c091d9a28a902af5a7b540e40442c64
|
||||||
|
|
||||||
class StefanPetrickCore {
|
class AnimartrixCore {
|
||||||
private:
|
private:
|
||||||
|
|
||||||
public:
|
public:
|
||||||
@@ -60,11 +60,11 @@ class StefanPetrickCore {
|
|||||||
float noise_angle_c, noise_angle_d, noise_angle_e, noise_angle_f; // angles based on linear noise travel
|
float noise_angle_c, noise_angle_d, noise_angle_e, noise_angle_f; // angles based on linear noise travel
|
||||||
float dir_c, dir_d, dir_e, dir_f; // direction multiplicators
|
float dir_c, dir_d, dir_e, dir_f; // direction multiplicators
|
||||||
|
|
||||||
StefanPetrickCore() {
|
AnimartrixCore() {
|
||||||
USER_PRINTLN("StefanPetrickCore constructor");
|
USER_PRINTLN("AnimartrixCore constructor");
|
||||||
}
|
}
|
||||||
~StefanPetrickCore() {
|
~AnimartrixCore() {
|
||||||
USER_PRINTLN("StefanPetrickCore destructor");
|
USER_PRINTLN("AnimartrixCore destructor");
|
||||||
}
|
}
|
||||||
|
|
||||||
void init() {
|
void init() {
|
||||||
@@ -177,7 +177,7 @@ class StefanPetrickCore {
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
class PolarBasics:public StefanPetrickCore {
|
class PolarBasics:public AnimartrixCore {
|
||||||
private:
|
private:
|
||||||
|
|
||||||
public:
|
public:
|
||||||
@@ -262,7 +262,7 @@ class PolarBasics:public StefanPetrickCore {
|
|||||||
|
|
||||||
void calculate_oscillators() {
|
void calculate_oscillators() {
|
||||||
|
|
||||||
StefanPetrickCore::calculate_oscillators();
|
AnimartrixCore::calculate_oscillators();
|
||||||
|
|
||||||
uint16_t noi;
|
uint16_t noi;
|
||||||
noi = inoise16(10000 + linear_c * 100000); // some noise controlled angular offsets
|
noi = inoise16(10000 + linear_c * 100000); // some noise controlled angular offsets
|
||||||
@@ -369,7 +369,7 @@ class PolarBasics:public StefanPetrickCore {
|
|||||||
//based on https://gist.github.com/StefanPetrick/35ffd8467df22a77067545cfb889aa4f
|
//based on https://gist.github.com/StefanPetrick/35ffd8467df22a77067545cfb889aa4f
|
||||||
//and Fastled podcast nr 3: https://www.youtube.com/watch?v=3tfjP7GJnZo
|
//and Fastled podcast nr 3: https://www.youtube.com/watch?v=3tfjP7GJnZo
|
||||||
|
|
||||||
class CircularBlobs:public StefanPetrickCore {
|
class CircularBlobs:public AnimartrixCore {
|
||||||
private:
|
private:
|
||||||
|
|
||||||
float fade(float t){ return t * t * t * (t * (t * 6 - 15) + 10); }
|
float fade(float t){ return t * t * t * (t * (t * 6 - 15) + 10); }
|
||||||
@@ -498,7 +498,7 @@ class CircularBlobs:public StefanPetrickCore {
|
|||||||
|
|
||||||
void calculate_oscillators() {
|
void calculate_oscillators() {
|
||||||
|
|
||||||
StefanPetrickCore::calculate_oscillators();
|
AnimartrixCore::calculate_oscillators();
|
||||||
|
|
||||||
float n;
|
float n;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user