strange_attractor_renderer

Struct Runtime

source
pub struct Runtime { /* private fields */ }
Expand description

Stores data used by the algorithm.

This enables us to reuse memory.

Implementations§

source§

impl Runtime

source

pub fn new(config: &Config<impl Attractor, impl ColorTransform>) -> Self

Creates a new runtime from the dimensions of Config.

source

pub fn reset(&mut self)

Reset this runtime.

source

pub fn merge(&mut self, other: &Self)

Merges the data of the two images. other will not be modified. This makes self appear as if it had been rendered with the sum of the iterations of self and other.

§Panics

Panics if the dimensions of self isn’t the same as the dimensions of other.

Auto Trait Implementations§

§

impl Freeze for Runtime

§

impl