peek property

double peek
final

The 🔲 peek is a double applied as padding to and insetting 📚 SurfaceLayer.MATERIAL.

Having declared a side(s) to receive special treatment by passing 🔀 peekAlignment, a 📏 peekRatio defines the scale by which to multiply this (these) edge inset(s).

  • Defaults to thicker peekRatio == 2.0
  • A larger peekRatio creates a more dramatic effect
  • Thinner side(s) possible by passing 0 > peekRatio > 1

(More than one side is affected by a corner-set Alignment, such as Alignment.bottomRight.)

Implementation

final double peek, peekRatio;