pub struct Eclipse { /* private fields */ }Expand description
A stippled eclipse in the brand palette.
An analytic rim arc pinned to the viewport’s top and right edges, a sky/violet/plum corona regenerating on a 90-frame cycle, rim glimmer, migrating silver dust, film grain, and a vignette.
Use it as a full-viewport backdrop — mount it with
crate::components::Shader, or drive it through
Surface::render under hand-painted
chrome. The field is opaque everywhere, so it always paints the whole
target. Every distance derives from sqrt(area / DESIGN_AREA), exactly
as on the web, so the geometry adapts to any viewport. All state is
recomputed in Program::advance — the CPU twin of the WGSL Scene
uniform — making frames a pure function of the clock.
The GPU original draws stipple sites at 2×2 physical pixels and adds a barely-there monochrome grade pass; here every half-block pixel is a stipple site and the grade is dropped — it sits below one terminal color step.
Trait Implementations§
Source§impl Program for Eclipse
impl Program for Eclipse
Source§fn advance(&mut self, now: Duration, width: f32, height: f32)
fn advance(&mut self, now: Duration, width: f32, height: f32)
now for a width × height pixel
target. Runs once per frame before any sampling.Auto Trait Implementations§
impl Freeze for Eclipse
impl RefUnwindSafe for Eclipse
impl Send for Eclipse
impl Sync for Eclipse
impl Unpin for Eclipse
impl UnsafeUnpin for Eclipse
impl UnwindSafe for Eclipse
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
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.Source§impl<T> DowncastSync for T
impl<T> DowncastSync for T
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more