pub struct MosaicControlValue(/* private fields */);
Expand description
Controls the intensity of the “mosaic” special effect.
You can set the effect intensity for all backgrounds and also for objects,
but then each background and object can also apply the effect (or not)
according to its own controls (see BackgroundControlValue
).
The visual effect of the mosaic is that pixels in the source data will be “duplicated” in the destination. When the mosaic is applied each “real” pixel will be copied over X additional pixels to the left, or Y additional pixels below, instead of what would normally be drawn there. When X or Y is 0 then it’s the same as having no effect applied at all in that direction.
The mosaic effect also interacts with offsets, so if you don’t want the duplication to start from the very upper left you can offset the background or object up or to the left so that the effect starts in the “middle” of a mosaic region.
Implementations§
Source§impl MosaicControlValue
impl MosaicControlValue
pub const fn new() -> Self
pub const fn bg_horizontal(self) -> u16
pub const fn with_bg_horizontal(self, u: u16) -> Self
pub fn set_bg_horizontal(&mut self, u: u16)
pub const fn bg_vertical(self) -> u16
pub const fn with_bg_vertical(self, u: u16) -> Self
pub fn set_bg_vertical(&mut self, u: u16)
pub const fn obj_horizontal(self) -> u16
pub const fn with_obj_horizontal(self, u: u16) -> Self
pub fn set_obj_horizontal(&mut self, u: u16)
pub const fn obj_vertical(self) -> u16
pub const fn with_obj_vertical(self, u: u16) -> Self
pub fn set_obj_vertical(&mut self, u: u16)
Trait Implementations§
Source§impl Clone for MosaicControlValue
impl Clone for MosaicControlValue
Source§fn clone(&self) -> MosaicControlValue
fn clone(&self) -> MosaicControlValue
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more