tweaked colours
This commit is contained in:
parent
7b801639e9
commit
af7a44dfa7
3 changed files with 4 additions and 4 deletions
2
Cargo.lock
generated
2
Cargo.lock
generated
|
@ -384,7 +384,7 @@ checksum = "712e227841d057c1ee1cd2fb22fa7e5a5461ae8e48fa2ca79ec42cfc1931183f"
|
|||
|
||||
[[package]]
|
||||
name = "writhing_mass_of_flesh"
|
||||
version = "0.1.0"
|
||||
version = "0.1.1"
|
||||
dependencies = [
|
||||
"clap",
|
||||
"gif",
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
[package]
|
||||
name = "writhing_mass_of_flesh"
|
||||
version = "0.1.1"
|
||||
version = "0.1.2"
|
||||
edition = "2021"
|
||||
authors = ["Jacob Janzen"]
|
||||
description = "Creates a procedurally generated image that sort of looks like bubbles"
|
||||
|
|
|
@ -159,8 +159,8 @@ impl Image {
|
|||
|
||||
if self.point_data[index].min_dist < 0.5 {
|
||||
red = 0xFF - (102.0 * self.point_data[index].min_dist) as u8;
|
||||
green = 0xFF - (512.0 * self.point_data[index].min_dist) as u8;
|
||||
blue = green;
|
||||
blue = 0xFF - (512.0 * self.point_data[index].min_dist) as u8;
|
||||
green = (blue as f64 * 0.8) as u8;
|
||||
} else {
|
||||
red = 0xFF - (408.0 * (self.point_data[index].min_dist - 0.5) + 51.0) as u8;
|
||||
green = 0;
|
||||
|
|
Loading…
Add table
Reference in a new issue