Function paint_preview

Source
fn paint_preview(
    p: &Painter,
    tile: Rect,
    tex: TextureId,
    kind: TransitionKind,
    st: &TransitionsState,
    palette: &Palette,
)
Expand description

Draw the transition over the stock picture: A is the picture, B the same picture tinted, so the two sides of the cut read apart without decoding a second image.