zmitchell / splatter

A Rust framework for creating generative art
0 stars 0 forks source link

There's print statement somewhere triggered by running the draw_polyline example #58

Open zmitchell opened 10 months ago

zmitchell commented 10 months ago

Describe the bug If you run the draw_polyline example you'll see a bunch of debug output that looks like this:

point: (-512.0, 171.37344), attrs: [0.21801369, 0.21801369, 0.00033040904, 1.0]
points_colored: [(Vec2(-512.0, 169.68895), Alpha { color: Rgb { red: 0.22486594, green: 0.22486594, blue: 0.0008921874, standard: PhantomData<palette::encoding::linear::Linear<palette::encoding::srgb::Srgb>> }, alpha: 1.0 }), (Vec2(-398.22223, -232.70108), Alpha { color: Rgb { red: 0.33216712, green: 0.14109083, blue: 0.01190576, standard: PhantomData<palette::encoding::linear::Linear<palette::encoding::srgb::Srgb>> }, alpha: 1.0 }), (Vec2(-284.44446, -169.68839), Alpha { color: Rgb { red: 0.46457964, green: 0.07907669, blue: 0.036810648, standard: PhantomData<palette::encoding::linear::Linear<palette::encoding::srgb::Srgb>> }, alpha: 1.0 }), (Vec2(-170.66667, 232.70197), Alpha { color: Rgb { red: 0.6235499, green: 0.036810648, blue: 0.07907669, standard: PhantomData<palette::encoding::linear::Linear<palette::encoding::srgb::Srgb>> }, alpha: 1.0 }), (Vec2(-56.88889, 169.68983), Alpha { color: Rgb { red: 0.8104158, green: 0.01190576, blue: 0.14109083, standard: PhantomData<palette::encoding::linear::Linear<palette::encoding::srgb::Srgb>> }, alpha: 1.0 }), (Vec2(56.88889, -232.70093), Alpha { color: Rgb { red: 0.0008921874, green: 0.0008921874, blue: 0.22486594, standard: PhantomData<palette::encoding::linear::Linear<palette::encoding::srgb::Srgb>> }, alpha: 1.0 }), (Vec2(170.66667, -169.6877), Alpha { color: Rgb { red: 0.01190576, green: 0.8104158, blue: 0.33216712, standard: PhantomData<palette::encoding::linear::Linear<palette::encoding::srgb::Srgb>> }, alpha: 1.0 }), (Vec2(284.44446, 232.70505), Alpha { color: Rgb { red: 0.036810648, green: 0.6235499, blue: 0.46457964, standard: PhantomData<palette::encoding::linear::Linear<palette::encoding::srgb::Srgb>> }, alpha: 1.0 }), (Vec2(398.22223, 169.6856), Alpha { color: Rgb { red: 0.07907669, green: 0.46457964, blue: 0.6235499, standard: PhantomData<palette::encoding::linear::Linear<palette::encoding::srgb::Srgb>> }, alpha: 1.0 }), (Vec2(512.0, -232.70143), Alpha { color: Rgb { red: 0.14109083, green: 0.33216712, blue: 0.8104158, standard: PhantomData<palette::encoding::linear::Linear<palette::encoding::srgb::Srgb>> }, alpha: 1.0 })]
point: (-512.0, 169.68895), attrs: [0.22486594, 0.22486594, 0.0008921874, 1.0]
points_colored: [(Vec2(-512.0, 167.75595), Alpha { color: Rgb { red: 0.23283632, green: 0.23283632, blue: 0.0015332049, standard: PhantomData<palette::encoding::linear::Linear<palette::encoding::srgb::Srgb>> }, alpha: 1.0 }), (Vec2(-398.22223, -234.09839), Alpha { color: Rgb { red: 0.34215912, green: 0.14717695, blue: 0.013376629, standard: PhantomData<palette::encoding::linear::Linear<palette::encoding::srgb::Srgb>> }, alpha: 1.0 }), (Vec2(-284.44446, -167.75632), Alpha { color: Rgb { red: 0.4767178, green: 0.08343304, blue: 0.03961582, standard: PhantomData<palette::encoding::linear::Linear<palette::encoding::srgb::Srgb>> }, alpha: 1.0 }), (Vec2(-170.66667, 234.09863), Alpha { color: Rgb { red: 0.6379489, green: 0.03961582, blue: 0.08343304, standard: PhantomData<palette::encoding::linear::Linear<palette::encoding::srgb::Srgb>> }, alpha: 1.0 }), (Vec2(-56.88889, 167.75598), Alpha { color: Rgb { red: 0.8271821, green: 0.013376629, blue: 0.14717695, standard: PhantomData<palette::encoding::linear::Linear<palette::encoding::srgb::Srgb>> }, alpha: 1.0 }), (Vec2(56.88889, -234.09888), Alpha { color: Rgb { red: 0.0015332049, green: 0.0015332049, blue: 0.23283632, standard: PhantomData<palette::encoding::linear::Linear<palette::encoding::srgb::Srgb>> }, alpha: 1.0 }), (Vec2(170.66667, -167.75385), Alpha { color: Rgb { red: 0.013376673, green: 0.8271816, blue: 0.34215936, standard: PhantomData<palette::encoding::linear::Linear<palette::encoding::srgb::Srgb>> }, alpha: 1.0 }), (Vec2(284.44446, 234.1004), Alpha { color: Rgb { red: 0.03961582, green: 0.6379489, blue: 0.4767178, standard: PhantomData<palette::encoding::linear::Linear<palette::encoding::srgb::Srgb>> }, alpha: 1.0 }), (Vec2(398.22223, 167.7553), Alpha { color: Rgb { red: 0.08343304, green: 0.4767178, blue: 0.6379489, standard: PhantomData<palette::encoding::linear::Linear<palette::encoding::srgb::Srgb>> }, alpha: 1.0 }), (Vec2(512.0, -234.09682), Alpha { color: Rgb { red: 0.14717679, green: 0.34215936, blue: 0.8271816, standard: PhantomData<palette::encoding::linear::Linear<palette::encoding::srgb::Srgb>> }, alpha: 1.0 })]

To Reproduce

  1. $ cargo run --example draw_polyline
  2. View the output in the terminal

Expected behavior A user should not see this output.

System info (please complete the following information):

Additional context N/A