Package limn.graphics
Record Class BackdropEffect.Pixelate
java.lang.Object
java.lang.Record
limn.graphics.BackdropEffect.Pixelate
- Record Components:
tint- colour over the pixelated backdrop; usually clear or barely tinted, since a tint that hides the blocks also hides that something was hiddencell- cell edge in points, at least 1. The grid is aligned to the framebuffer, not to the shape, so a panel that moves does not shimmer through its own cells
- All Implemented Interfaces:
BackdropEffect
- Enclosing interface:
BackdropEffect
public static record BackdropEffect.Pixelate(Color tint, float cell)
extends Record
implements BackdropEffect
The backdrop reduced to squares: redaction, not decoration. Each cell samples one point, so
what the cell hid cannot be recovered from the output: this is the variant to put over a
field before a screenshot, and the reason it exists in a toolkit at all.
-
Nested Class Summary
Nested classes/interfaces inherited from interface limn.graphics.BackdropEffect
BackdropEffect.Blur, BackdropEffect.Clear, BackdropEffect.Crt, BackdropEffect.Pixelate, BackdropEffect.Wash -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfloatcell()Returns the value of thecellrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.tint()Returns the value of thetintrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
tint
Returns the value of thetintrecord component.- Specified by:
tintin interfaceBackdropEffect- Returns:
- the value of the
tintrecord component
-
cell
public float cell()Returns the value of thecellrecord component.- Returns:
- the value of the
cellrecord component
-