enum Eagle::GPU::Filter

Overview

How textures are sampled when drawn larger or smaller than their size. Nearest keeps hard pixel edges for pixel art, and Linear blends smoothly.

Defined in:

eagle/gpu/device.cr

Enum Members

Nearest = 0

Crisp pixels when scaled. Best for pixel art.

Linear = 1

Smooth blending between pixels.

Instance Method Summary

Instance Method Detail

def linear? #

Returns true if this enum value equals Linear


def nearest? #

Returns true if this enum value equals Nearest