pub struct ShadowPixels {
pub offset: [f32; 2],
pub sigma: f32,
pub color: [f32; 4],
}Expand description
A text shadow in pixels of the picture its text is placed on.
Fields§
§offset: [f32; 2]Offset in pixels, +x right, +y down.
sigma: f32The Gaussian’s standard deviation in pixels: half the blur radius.
color: [f32; 4]Straight, sRGB-encoded RGBA in 0..=1.
Trait Implementations§
Source§impl Clone for ShadowPixels
impl Clone for ShadowPixels
impl Copy for ShadowPixels
Source§impl Debug for ShadowPixels
impl Debug for ShadowPixels
Source§impl PartialEq for ShadowPixels
impl PartialEq for ShadowPixels
impl StructuralPartialEq for ShadowPixels
Auto Trait Implementations§
impl Freeze for ShadowPixels
impl RefUnwindSafe for ShadowPixels
impl Send for ShadowPixels
impl Sync for ShadowPixels
impl Unpin for ShadowPixels
impl UnsafeUnpin for ShadowPixels
impl UnwindSafe for ShadowPixels
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