pub struct OrbitConfig {
pub radius_x: f64,
pub radius_y: f64,
pub speed: f64,
pub start_angle: f64,
pub depth: f64,
pub opacity_depth: f64,
pub tilt: f64,
pub phase: f64,
}Expand description
Configuration for a 3D orbit/floating animation effect. Creates circular or elliptical motion with pseudo-depth (scale + opacity modulation).
Fields§
§radius_x: f64Horizontal radius of the orbit in pixels.
radius_y: f64Vertical radius of the orbit in pixels.
speed: f64Orbit speed in revolutions per second.
start_angle: f64Starting angle in degrees (0 = right, 90 = bottom).
depth: f64Scale modulation depth (0.0 = none, 0.2 = 20% size variation for depth effect).
opacity_depth: f64Opacity modulation depth (0.0 = none, 0.3 = 30% opacity variation for depth).
tilt: f64Tilt angle in degrees — tilts the orbit plane for a 3D perspective look.
phase: f64Phase offset (0.0 to 1.0) — offsets the starting position along the orbit.
Trait Implementations§
Source§impl Clone for OrbitConfig
impl Clone for OrbitConfig
Source§fn clone(&self) -> OrbitConfig
fn clone(&self) -> OrbitConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for OrbitConfig
impl Debug for OrbitConfig
Source§impl<'de> Deserialize<'de> for OrbitConfig
impl<'de> Deserialize<'de> for OrbitConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl JsonSchema for OrbitConfig
impl JsonSchema for OrbitConfig
Source§fn schema_name() -> String
fn schema_name() -> String
The name of the generated JSON Schema. Read more
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
Whether JSON Schemas generated for this type should be re-used where possible using the
$ref keyword. Read moreSource§impl PartialEq for OrbitConfig
impl PartialEq for OrbitConfig
Source§impl Serialize for OrbitConfig
impl Serialize for OrbitConfig
impl StructuralPartialEq for OrbitConfig
Auto Trait Implementations§
impl Freeze for OrbitConfig
impl RefUnwindSafe for OrbitConfig
impl Send for OrbitConfig
impl Sync for OrbitConfig
impl Unpin for OrbitConfig
impl UnsafeUnpin for OrbitConfig
impl UnwindSafe for OrbitConfig
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<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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> ⓘ
Converts
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> ⓘ
Converts
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