Push colors more towards blue in colored noise.
This commit is contained in:
parent
3597cafeaa
commit
92eac483d1
@ -43,7 +43,7 @@ fn main() -> std::io::Result<()> {
|
|||||||
loop {
|
loop {
|
||||||
let x = rng.gen_range(0, x_size);
|
let x = rng.gen_range(0, x_size);
|
||||||
let y = rng.gen_range(0, y_size);
|
let y = rng.gen_range(0, y_size);
|
||||||
let c = c0.interpolate(c1, rng.gen::<f64>());
|
let c = c0.interpolate(c1, rng.gen::<f64>().powf(2.0));
|
||||||
frame[y][x] = c;
|
frame[y][x] = c;
|
||||||
|
|
||||||
let mut buf = Vec::with_capacity(x_size * y_size * 3);
|
let mut buf = Vec::with_capacity(x_size * y_size * 3);
|
||||||
|
Loading…
Reference in New Issue
Block a user