pub enum TrapShape {
None,
Point,
Line,
Cross,
Circle,
}Expand description
Escape time only: the shape an orbit is measured against ([field] trap).
With a trap, a pixel is coloured by the smallest distance its orbit came
to the shape rather than by how fast it escaped — which is what draws the
filaments, rings and stained-glass cells of orbit-trap imagery. Each shape
sits trap_radius from the origin, turned by trap_rotate.
Variants§
None
No trap: the smooth escape count colours the picture.
Point
A point trap_radius from the origin along trap_rotate.
Line
A line trap_radius from the origin, its normal along trap_rotate.
Cross
Two perpendicular lines crossing at the point Point would sit at,
turned by trap_rotate.
Circle
A circle of radius trap_radius about the origin; trap_rotate is inert
on it.
Implementations§
Trait Implementations§
impl Copy for TrapShape
impl Eq for TrapShape
impl StructuralPartialEq for TrapShape
Auto Trait Implementations§
impl Freeze for TrapShape
impl RefUnwindSafe for TrapShape
impl Send for TrapShape
impl Sync for TrapShape
impl Unpin for TrapShape
impl UnsafeUnpin for TrapShape
impl UnwindSafe for TrapShape
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.