diff options
author | Daniel Garcia <danielgarcia@gmail.com> | 2014-06-03 06:43:29 +0400 |
---|---|---|
committer | Daniel Garcia <danielgarcia@gmail.com> | 2014-06-03 06:43:29 +0400 |
commit | cbb495cbc1df8d6176e40562d731c4190243919d (patch) | |
tree | 4f956d13f0d6da562fd8eb17c828424e98e07f5b /noise.cpp | |
parent | 81fce972f8ff0ba9fdeaf35f5fc9441a3cb1d18b (diff) |
tweaking q44 values
Diffstat (limited to 'noise.cpp')
-rw-r--r-- | noise.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -491,7 +491,7 @@ void fill_raw_2dnoise16into8(uint8_t *pData, int width, int height, uint8_t octa } void fill_raw_2dnoise16into8(uint8_t *pData, int width, int height, uint8_t octaves, uint32_t x, int scalex, uint32_t y, int scaley, uint32_t time) { - fill_raw_2dnoise16into8(pData, width, height, octaves, q44(2.0), 171, 1, x, scalex, y, scaley, time); + fill_raw_2dnoise16into8(pData, width, height, octaves, q44(2,0), 171, 1, x, scalex, y, scaley, time); // for(int o = 0; o < octaves; o++) { // for(int i = 0,yy=y; i < height; i++,yy+=scaley) { // uint8_t *pRow = pData + (i * width); @@ -587,7 +587,7 @@ void fill_2dnoise16(CRGB *leds, int width, int height, bool serpentine, memset(V,0,height*width); memset(H,0,height*width); - fill_raw_2dnoise16into8((uint8_t*)V,width,height,octaves,q44(2.0),171,1,x,xscale,y,yscale,time); + fill_raw_2dnoise16into8((uint8_t*)V,width,height,octaves,q44(2,0),171,1,x,xscale,y,yscale,time); fill_raw_2dnoise8((uint8_t*)H,width,height,hue_octaves,hue_x,hue_xscale,hue_y,hue_yscale,hue_time); int w1 = width-1; |