tweaked colours

This commit is contained in:
jacob janzen 2022-08-28 14:02:20 -05:00
parent 7b801639e9
commit af7a44dfa7
3 changed files with 4 additions and 4 deletions

2
Cargo.lock generated
View file

@ -384,7 +384,7 @@ checksum = "712e227841d057c1ee1cd2fb22fa7e5a5461ae8e48fa2ca79ec42cfc1931183f"
[[package]]
name = "writhing_mass_of_flesh"
version = "0.1.0"
version = "0.1.1"
dependencies = [
"clap",
"gif",

View file

@ -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"

View file

@ -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;